Commit e7fecc8d authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing add item bitstream test

parent 27e767b4
......@@ -35,7 +35,7 @@ module Dspace
action :items, 'GET /rest/collections/:id/items' do
query_keys :expand, :limit, :offset
handler(200) do |response|
Dspace::Builders::ModelBuilder.build_(JSON.parse(response.body))
Dspace::Builders::ModelBuilder.build_items(JSON.parse(response.body))
end
end
......
......@@ -48,7 +48,7 @@ RSpec.describe Dspace::Resources::ItemResource, resource_kit: true do
end
it 'add item bitstreams' do
expect(resource).to have_action(:add_bitstrem).that_handles(200, 201).at_path('/rest/items/:id/bitstreams').with_verb(:post) do |handled|
expect(resource).to have_action(:add_bitstream).that_handles(200, 201).at_path('/rest/items/:id/bitstreams').with_verb(:post) do |handled|
expect(handled).to eq(true)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment