Commit 600746ad85f05ceb7e54da611d3cb7f361b83a19
1 parent
2d1a526b
Exists in
master
and in
22 other branches
ActionItem93: checking for a CSS class instead of an English text
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@900 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/helpers/enterprise_validation_helper.rb
| @@ -3,12 +3,12 @@ module EnterpriseValidationHelper | @@ -3,12 +3,12 @@ module EnterpriseValidationHelper | ||
| 3 | def status(create_enterprise) | 3 | def status(create_enterprise) |
| 4 | if create_enterprise.approved? | 4 | if create_enterprise.approved? |
| 5 | # FIXME: aurelio | 5 | # FIXME: aurelio |
| 6 | - return content_tag('span', _('Approved'), :style => 'color: green; font-weight: bold;') | 6 | + return content_tag('span', _('Approved'), :class => 'validation_approved', :style => 'color: green; font-weight: bold;') |
| 7 | end | 7 | end |
| 8 | 8 | ||
| 9 | if create_enterprise.rejected? | 9 | if create_enterprise.rejected? |
| 10 | # FIXME: aurelio | 10 | # FIXME: aurelio |
| 11 | - return content_tag('span', _('Rejected'), :style => 'color: red; font-weight: bold;') | 11 | + return content_tag('span', _('Rejected'), :class => 'validation_rejected', :style => 'color: red; font-weight: bold;') |
| 12 | end | 12 | end |
| 13 | end | 13 | end |
| 14 | 14 |
test/integration/enterprise_registration_test.rb
| @@ -57,7 +57,7 @@ class EnterpriseRegistrationTest < ActionController::IntegrationTest | @@ -57,7 +57,7 @@ class EnterpriseRegistrationTest < ActionController::IntegrationTest | ||
| 57 | 57 | ||
| 58 | follow_redirect! | 58 | follow_redirect! |
| 59 | assert_equal "/myprofile/myorg/enterprise_validation/view_processed/#{code}", path | 59 | assert_equal "/myprofile/myorg/enterprise_validation/view_processed/#{code}", path |
| 60 | - assert_tag :span, :content => 'Approved' | 60 | + assert_tag :span, :attributes => { :class => 'validation_approved' } |
| 61 | end | 61 | end |
| 62 | 62 | ||
| 63 | end | 63 | end |