test/test_api.rb in smart_init-3.1.0 vs test/test_api.rb in smart_init-3.1.1
- old
+ new
@@ -54,6 +54,12 @@
def test_missing_attributes
assert_raise ArgumentError do
TestService.call(attribute_1: "a", invalid_attribute: "b")
end
end
+
+ def test_invalid_input
+ assert_raise ArgumentError do
+ TestService.call("invalid_input here")
+ end
+ end
end