test/stripe/stripe_object_test.rb in stripe-1.40.0 vs test/stripe/stripe_object_test.rb in stripe-1.41.0
- old
+ new
@@ -281,9 +281,9 @@
should "error on setting a property to an empty string" do
obj = Stripe::StripeObject.construct_from({ :foo => 'bar' })
e = assert_raises ArgumentError do
obj.foo = ""
end
- assert_match /\(object\).foo = nil/, e.message
+ assert_match %r{\(object\).foo = nil}, e.message
end
end
end