test/unit/triggering_test.rb in foreman-tasks-4.0.1 vs test/unit/triggering_test.rb in foreman-tasks-4.1.0
- old
+ new
@@ -22,9 +22,9 @@
end
it 'cannot have mode set to arbitrary value' do
triggering = FactoryBot.build(:triggering)
_(triggering).must_be :valid?
- _ { proc { triggering.mode = 'bogus' } }.must_raise ArgumentError
- _ { proc { triggering.mode = 27 } }.must_raise ArgumentError
+ _(proc { triggering.mode = 'bogus' }).must_raise ArgumentError
+ _(proc { triggering.mode = 27 }).must_raise ArgumentError
end
end