test/twin/from_collection_test.rb in disposable-0.4.6 vs test/twin/from_collection_test.rb in disposable-0.4.7
- old
+ new
@@ -18,12 +18,12 @@
describe "from a collection" do
it do
twined_collection = Twin::Artist.from_collection(collection)
- twined_collection[0].must_be_instance_of Twin::Artist
- twined_collection[0].model.must_equal artist1
- twined_collection[1].must_be_instance_of Twin::Artist
- twined_collection[1].model.must_equal artist2
+ expect(twined_collection[0]).must_be_instance_of Twin::Artist
+ expect(twined_collection[0].model).must_equal artist1
+ expect(twined_collection[1]).must_be_instance_of Twin::Artist
+ expect(twined_collection[1].model).must_equal artist2
end
end
end