Commit 600746ad85f05ceb7e54da611d3cb7f361b83a19
1 parent
2d1a526b
Exists in
master
and in
28 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 | 3 | def status(create_enterprise) |
| 4 | 4 | if create_enterprise.approved? |
| 5 | 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 | 7 | end |
| 8 | 8 | |
| 9 | 9 | if create_enterprise.rejected? |
| 10 | 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 | 12 | end |
| 13 | 13 | end |
| 14 | 14 | ... | ... |
test/integration/enterprise_registration_test.rb
| ... | ... | @@ -57,7 +57,7 @@ class EnterpriseRegistrationTest < ActionController::IntegrationTest |
| 57 | 57 | |
| 58 | 58 | follow_redirect! |
| 59 | 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 | 61 | end |
| 62 | 62 | |
| 63 | 63 | end | ... | ... |