We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc10845 commit 1260103Copy full SHA for 1260103
spec/kraken-io_spec.rb
@@ -72,6 +72,14 @@
72
res = subject.callback_url('http://seriouslylike.omg').url('http://farts.gallery')
73
expect(res.code).to eq 200
74
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
83
84
85
describe '#url' do
0 commit comments