rubocop noise: introduced and resolved rails specific cop

http://rubocop.readthedocs.io/en/latest/cops/#rails
This commit is contained in:
Mark Moser
2016-09-08 11:52:34 -05:00
parent b74249a05f
commit d54b99135e
6 changed files with 11 additions and 10 deletions

View File

@ -8,7 +8,7 @@ class CandidateQuizQuestionTest < ActiveSupport::TestCase
"input_options" => %w(one two three).to_yaml,
"answer" => { test: 1, foo: 'bar', cheer: 'huzzah!' }.to_yaml,
"saved" => false, "submitted" => true,
"updated_at" => DateTime.parse('20160816') }
"updated_at" => DateTime.parse('20160816').in_time_zone }
end
test "propper dot attributes work" do
@ -22,7 +22,7 @@ class CandidateQuizQuestionTest < ActiveSupport::TestCase
assert_equal 'text', question.input_type
assert_equal false, question.saved
assert_equal true, question.submitted
assert_equal DateTime.parse('20160816'), question.updated_at
assert_equal DateTime.parse('20160816').in_time_zone, question.updated_at
end
test 'should handle array of input options' do