Skip to content

Commit

Permalink
Use one child with no ordered members ids
Browse files Browse the repository at this point in the history
  • Loading branch information
straleyb committed Jun 27, 2016
1 parent 6631fe3 commit cc8bbca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/actors/curation_concerns/apply_order_actor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
end

describe '#update' do
let(:curation_concern) { create(:work_with_two_children, user: user) }
let(:child) { GenericWork.create(id: "Blah3", title: ['This is a title']) }
let(:curation_concern) { create(:work_with_one_child, user: user) }
let(:child) { GenericWork.new(id: "Blah3", title: ['This is a title']) }

let(:user) { create(:user) }

Expand All @@ -55,6 +55,8 @@
before do
allow(CurationConcerns::Actors::RootActor).to receive(:new).and_return(root_actor)
allow(root_actor).to receive(:update).with({}).and_return(true)
g = child
g.save
curation_concern.apply_depositor_metadata(user.user_key)
curation_concern.save!
end
Expand Down

0 comments on commit cc8bbca

Please sign in to comment.