test/stripe/api_operations_test.rb in stripe-3.17.0 vs test/stripe/api_operations_test.rb in stripe-3.17.1
- old
+ new
@@ -6,10 +6,12 @@
module Stripe
class ApiOperationsTest < Test::Unit::TestCase
class UpdateableResource < APIResource
include Stripe::APIOperations::Save
+ OBJECT_NAME = "updateableresource".freeze
+
def self.protected_fields
[:protected]
end
end
@@ -31,9 +33,10 @@
end
context ".nested_resource_class_methods" do
class MainResource < APIResource
extend Stripe::APIOperations::NestedResource
+ OBJECT_NAME = "mainresource".freeze
nested_resource_class_methods :nested,
operations: %i[create retrieve update delete list]
end
should "define a create method" do