From e59b7b2dbbd16b122247f849a9f9a1c37f2996fc Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 15 Dec 2008 19:16:34 -0300 Subject: [PATCH] ActionItem833: fixing tests for rename --- test/unit/application_helper_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/application_helper_test.rb b/test/unit/application_helper_test.rb index db49892..beec812 100644 --- a/test/unit/application_helper_test.rb +++ b/test/unit/application_helper_test.rb @@ -273,7 +273,7 @@ class ApplicationHelperTest < Test::Unit::TestCase profile = Person.new profile.expects(:signup_fields).returns(['field']) - assert_equal 'SIGNUP_FIELD', custom_field(profile, 'field', 'SIGNUP_FIELD') + assert_equal 'SIGNUP_FIELD', optional_field(profile, 'field', 'SIGNUP_FIELD') end should 'not display field on signup' do @@ -286,7 +286,7 @@ class ApplicationHelperTest < Test::Unit::TestCase profile = Person.new profile.expects(:signup_fields).returns([]) - assert_equal '', custom_field(profile, 'field', 'SIGNUP_FIELD') + assert_equal '', optional_field(profile, 'field', 'SIGNUP_FIELD') end should 'display active fields' do @@ -299,7 +299,7 @@ class ApplicationHelperTest < Test::Unit::TestCase profile = Person.new profile.expects(:active_fields).returns(['field']) - assert_equal 'SIGNUP_FIELD', custom_field(profile, 'field', 'SIGNUP_FIELD') + assert_equal 'SIGNUP_FIELD', optional_field(profile, 'field', 'SIGNUP_FIELD') end should 'not display active fields' do @@ -312,7 +312,7 @@ class ApplicationHelperTest < Test::Unit::TestCase profile = Person.new profile.expects(:active_fields).returns([]) - assert_equal '', custom_field(profile, 'field', 'SIGNUP_FIELD') + assert_equal '', optional_field(profile, 'field', 'SIGNUP_FIELD') end should 'display required fields' do @@ -327,7 +327,7 @@ class ApplicationHelperTest < Test::Unit::TestCase profile = Person.new profile.expects(:active_fields).returns(['field']) profile.expects(:required_fields).returns(['field']) - assert_equal 'SIGNUP_FIELD', custom_field(profile, 'field', 'SIGNUP_FIELD') + assert_equal 'SIGNUP_FIELD', optional_field(profile, 'field', 'SIGNUP_FIELD') end protected -- libgit2 0.21.2