Skip to content

Commit f60052e

Browse files
committed
Merge pull request #2091 from alphagov/fix-assertion-relying-on-old-fallback-behaviour-for-question-titles
Avoid relying on old fallback behaviour for question title
2 parents 73a2d45 + bbe8122 commit f60052e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/smart_answers_controller_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def submit_json_response(response = nil, other_params = {})
502502
assert_match /Smart answers controller sample/, doc.css('h1').first.to_s
503503
assert_equal 0, doc.css('head').size, "Should not have layout"
504504
assert_equal '/smart-answers-controller-sample/y/no', doc.css('form').first.attributes['action'].to_s
505-
assert_equal @flow.node(:do_you_like_jam?).name.to_s.humanize, data['title']
505+
assert_equal 'Do you like jam?', data['title']
506506
end
507507
end
508508

0 commit comments

Comments
 (0)