From 600746ad85f05ceb7e54da611d3cb7f361b83a19 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 12 Nov 2007 19:29:56 +0000 Subject: [PATCH] ActionItem93: checking for a CSS class instead of an English text --- app/helpers/enterprise_validation_helper.rb | 4 ++-- test/integration/enterprise_registration_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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