spec/retriable_spec.rb in retriable-3.0.1 vs spec/retriable_spec.rb in retriable-3.0.2
- old
+ new
@@ -362,6 +362,18 @@
end
end.must_raise EOFError
expect(tries).must_equal 2
end
+
+ it "raises NoMethodError on invalid configuration" do
+ assert_raises NoMethodError do
+ Retriable.configure { |c| c.does_not_exist = 123 }
+ end
+ end
+
+ it "raises ArgumentError on invalid option on #retriable" do
+ assert_raises ArgumentError do
+ Retriable.retriable(does_not_exist: 123)
+ end
+ end
end