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 | 273 | |
274 | 274 | profile = Person.new |
275 | 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 | 277 | end |
278 | 278 | |
279 | 279 | should 'not display field on signup' do |
... | ... | @@ -286,7 +286,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
286 | 286 | |
287 | 287 | profile = Person.new |
288 | 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 | 290 | end |
291 | 291 | |
292 | 292 | should 'display active fields' do |
... | ... | @@ -299,7 +299,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
299 | 299 | |
300 | 300 | profile = Person.new |
301 | 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 | 303 | end |
304 | 304 | |
305 | 305 | should 'not display active fields' do |
... | ... | @@ -312,7 +312,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
312 | 312 | |
313 | 313 | profile = Person.new |
314 | 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 | 316 | end |
317 | 317 | |
318 | 318 | should 'display required fields' do |
... | ... | @@ -327,7 +327,7 @@ class ApplicationHelperTest < Test::Unit::TestCase |
327 | 327 | profile = Person.new |
328 | 328 | profile.expects(:active_fields).returns(['field']) |
329 | 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 | 331 | end |
332 | 332 | |
333 | 333 | protected | ... | ... |