spec/client_spec.rb in imaginary-0.0.1 vs spec/client_spec.rb in imaginary-0.2.0
- old
+ new
@@ -14,21 +14,21 @@
subject { client }
describe '#add_image_from_url' do
it "should add the image to the server and return its name" do
FakeWeb.register_uri :post,
- "http://some_user:123secret@imaginary.test.org//api/buckets/some_bucket/images.json",
+ "http://some_user:123secret@imaginary.test.org/buckets/some_bucket/images.json",
body: '{"name": "kitten"}',
content_type: 'application/json; charset=utf-8'
client.add_image_from_url('http://placekitten.com/200/300', 'kitten').should == 'kitten'
end
end
describe '#add_image_from_file' do
it "should add the image to the server and return its name" do
FakeWeb.register_uri :post,
- "http://some_user:123secret@imaginary.test.org//api/buckets/some_bucket/images.json",
+ "http://some_user:123secret@imaginary.test.org/buckets/some_bucket/images.json",
body: '{"name": "hmans"}',
content_type: 'application/json; charset=utf-8'
client.add_image_from_file(File.new('./spec/files/hmans.jpg'), 'hmans').should == 'hmans'
end