spec/ribose/file_uploader_spec.rb in ribose-0.4.1 vs spec/ribose/file_uploader_spec.rb in ribose-0.5.0

- old
+ new

@@ -5,11 +5,11 @@ context "with valid data" do it "creates a new upload with details" do space_id = 123_456_789 stub_ribose_space_file_upload_api(space_id, file_attributes) - file_upload = Ribose::FileUploader.upload(space_id, file_attributes) + file_upload = Ribose::FileUploader.upload(space_id, **file_attributes) expect(file_upload.attachment.id).not_to be_nil expect(file_upload.attachment.author).to eq("John Doe") expect(file_upload.attachment.content_type).to eq("image/png") end @@ -19,10 +19,10 @@ it "creates a new upload as octet-stream" do space_id = 123_456_789 attributes = file_attributes(File.join(Ribose.root, "Rakefile")) stub_ribose_space_file_upload_api(space_id, attributes) - file_upload = Ribose::FileUploader.upload(space_id, attributes) + file_upload = Ribose::FileUploader.upload(space_id, **attributes) expect(file_upload.attachment.id).not_to be_nil expect(file_upload.attachment.author).to eq("John Doe") end end