Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Nov 20, 2019
1 parent 5968a2b commit 1cbe979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/container_item_spec.rb
Expand Up @@ -144,7 +144,7 @@
a = Specimen.create!
b = Specimen.create!
ci1 = ContainerItem.create!(contained_object: a, container_id: c.id)
expect {ContainerItem.create!(contained_object: c, container_id: c.id)}.to raise_error ActiveRecord::RecordInvalid, `Contained object is already in a container_item`
expect {ContainerItem.create!(contained_object: c, container_id: c.id)}.to raise_error ActiveRecord::RecordInvalid, 'Validation failed: Contained object is already in a container_item'
end
end

Expand Down

0 comments on commit 1cbe979

Please sign in to comment.