diff --git a/app/helpers/enterprise_validation_helper.rb b/app/helpers/enterprise_validation_helper.rb index 0c38c4a..3fb6e07 100644 --- a/app/helpers/enterprise_validation_helper.rb +++ b/app/helpers/enterprise_validation_helper.rb @@ -3,12 +3,12 @@ module EnterpriseValidationHelper def status(create_enterprise) if create_enterprise.approved? # FIXME: aurelio - return content_tag('span', _('Approved'), :style => 'color: green; font-weight: bold;') + return content_tag('span', _('Approved'), :class => 'validation_approved', :style => 'color: green; font-weight: bold;') end if create_enterprise.rejected? # FIXME: aurelio - return content_tag('span', _('Rejected'), :style => 'color: red; font-weight: bold;') + return content_tag('span', _('Rejected'), :class => 'validation_rejected', :style => 'color: red; font-weight: bold;') end end diff --git a/test/integration/enterprise_registration_test.rb b/test/integration/enterprise_registration_test.rb index 42158ac..84e2b58 100644 --- a/test/integration/enterprise_registration_test.rb +++ b/test/integration/enterprise_registration_test.rb @@ -57,7 +57,7 @@ class EnterpriseRegistrationTest < ActionController::IntegrationTest follow_redirect! assert_equal "/myprofile/myorg/enterprise_validation/view_processed/#{code}", path - assert_tag :span, :content => 'Approved' + assert_tag :span, :attributes => { :class => 'validation_approved' } end end -- libgit2 0.21.2