spec/models/collection_spec.rb in curation_concerns-1.3.3 vs spec/models/collection_spec.rb in curation_concerns-1.4.0

- old
+ new

@@ -63,11 +63,11 @@ context "adding members" do context "using assignment" do subject { described_class.create!(title: ['Some title'], members: [gf1, gf2]) { |c| c.apply_depositor_metadata(user) } } it "has many files" do - expect(subject.reload.members).to eq [gf1, gf2] + expect(subject.reload.members).to match_array [gf1, gf2] end end context "using append" do before do @@ -76,17 +76,17 @@ end it "allows new files to be added" do subject.reload subject.members << gf2 subject.save - expect(subject.reload.members).to eq [gf1, gf2] + expect(subject.reload.members).to match_array [gf1, gf2] end it "allows multiple files to be added" do subject.reload subject.add_members [gf2.id, gf3.id] subject.save - expect(subject.reload.members).to eq [gf1, gf2, gf3] + expect(subject.reload.members).to match_array [gf1, gf2, gf3] end end end context "removing members" do