test/razorpay/test_entity.rb in razorpay-2.3.0 vs test/razorpay/test_entity.rb in razorpay-2.4.0

- old
+ new

@@ -42,9 +42,13 @@ def test_json_conversion assert_equal '{"a":1}', @entity.to_json end + def test_json_conversion_with_args + assert_equal '{"a": 1}', @entity.to_json(space: ' ') + end + def test_invalid_attribute_get assert_raises(NoMethodError, 'It must raise a NoMethodError on invalid attribute') { @entity.b } end end end