Skip to content

Commit 8556d02

Browse files
committed
Fix incorrect test in request_spec
This test was raising an ArgumentError not because it was being raised from inside the method, but because a params argument was not being supplied
1 parent 0c16edd commit 8556d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/bitbucket_rest_api/request_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
describe "request" do
99
it "raises an ArgumentError if an unsupported HTTP verb is used" do
10-
expect { fake_api.new.request(:i_am_a_teapot, '/') }.to raise_error(ArgumentError)
10+
expect { fake_api.new.request(:i_am_a_teapot, {}, '/') }.to raise_error(ArgumentError)
1111
end
1212

1313
context "with a connection" do
@@ -78,4 +78,4 @@
7878
end
7979
end
8080
end
81-
end
81+
end

0 commit comments

Comments
 (0)