spec/unit/evil/client/operation/request_spec.rb in evil-client-0.3.1 vs spec/unit/evil/client/operation/request_spec.rb in evil-client-0.3.2
- old
+ new
@@ -16,10 +16,10 @@
let(:request) { described_class.new(schema) }
let(:file) { StringIO.new "Hi!" }
let(:schema) do
{
format: "multipart",
- method: "patch",
+ method: proc { "patch" },
path: proc { |id:, **| "users/#{id}" },
files: Evil::Client::DSL::Files.new { |file:, **| add file },
security: Evil::Client::DSL::Security.new { basic_auth "qux", "abc" },
query: Test::Query,
body: Test::Body,