Skip to content

Commit 1260103

Browse files
committed
Add failing spec for callback_url provided as an option
1 parent cc10845 commit 1260103

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/kraken-io_spec.rb

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
res = subject.callback_url('http://seriouslylike.omg').url('http://farts.gallery')
7373
expect(res.code).to eq 200
7474
end
75+
76+
it 'uses a callback provided as an option' do
77+
stub_request(:post, "https://api.kraken.io/v1/url")
78+
.with(:body => expected_params.to_json).to_return(body: result.to_json)
79+
80+
res = subject.url('http://farts.gallery', :callback_url => 'http://seriouslylike.omg')
81+
expect(res.code).to eq 200
82+
end
7583
end
7684

7785
describe '#url' do

0 commit comments

Comments
 (0)