Commit e59b7b2dbbd16b122247f849a9f9a1c37f2996fc
1 parent
f9db7629
Exists in
master
and in
29 other branches
ActionItem833: fixing tests for rename
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
test/unit/application_helper_test.rb
@@ -273,7 +273,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -273,7 +273,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
273 | 273 | ||
274 | profile = Person.new | 274 | profile = Person.new |
275 | profile.expects(:signup_fields).returns(['field']) | 275 | profile.expects(:signup_fields).returns(['field']) |
276 | - assert_equal 'SIGNUP_FIELD', custom_field(profile, 'field', 'SIGNUP_FIELD') | 276 | + assert_equal 'SIGNUP_FIELD', optional_field(profile, 'field', 'SIGNUP_FIELD') |
277 | end | 277 | end |
278 | 278 | ||
279 | should 'not display field on signup' do | 279 | should 'not display field on signup' do |
@@ -286,7 +286,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -286,7 +286,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
286 | 286 | ||
287 | profile = Person.new | 287 | profile = Person.new |
288 | profile.expects(:signup_fields).returns([]) | 288 | profile.expects(:signup_fields).returns([]) |
289 | - assert_equal '', custom_field(profile, 'field', 'SIGNUP_FIELD') | 289 | + assert_equal '', optional_field(profile, 'field', 'SIGNUP_FIELD') |
290 | end | 290 | end |
291 | 291 | ||
292 | should 'display active fields' do | 292 | should 'display active fields' do |
@@ -299,7 +299,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -299,7 +299,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
299 | 299 | ||
300 | profile = Person.new | 300 | profile = Person.new |
301 | profile.expects(:active_fields).returns(['field']) | 301 | profile.expects(:active_fields).returns(['field']) |
302 | - assert_equal 'SIGNUP_FIELD', custom_field(profile, 'field', 'SIGNUP_FIELD') | 302 | + assert_equal 'SIGNUP_FIELD', optional_field(profile, 'field', 'SIGNUP_FIELD') |
303 | end | 303 | end |
304 | 304 | ||
305 | should 'not display active fields' do | 305 | should 'not display active fields' do |
@@ -312,7 +312,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -312,7 +312,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
312 | 312 | ||
313 | profile = Person.new | 313 | profile = Person.new |
314 | profile.expects(:active_fields).returns([]) | 314 | profile.expects(:active_fields).returns([]) |
315 | - assert_equal '', custom_field(profile, 'field', 'SIGNUP_FIELD') | 315 | + assert_equal '', optional_field(profile, 'field', 'SIGNUP_FIELD') |
316 | end | 316 | end |
317 | 317 | ||
318 | should 'display required fields' do | 318 | should 'display required fields' do |
@@ -327,7 +327,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -327,7 +327,7 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
327 | profile = Person.new | 327 | profile = Person.new |
328 | profile.expects(:active_fields).returns(['field']) | 328 | profile.expects(:active_fields).returns(['field']) |
329 | profile.expects(:required_fields).returns(['field']) | 329 | profile.expects(:required_fields).returns(['field']) |
330 | - assert_equal '<span>SIGNUP_FIELD</span>', custom_field(profile, 'field', 'SIGNUP_FIELD') | 330 | + assert_equal '<span>SIGNUP_FIELD</span>', optional_field(profile, 'field', 'SIGNUP_FIELD') |
331 | end | 331 | end |
332 | 332 | ||
333 | protected | 333 | protected |