spec/legacy_spec.rb in datamapper-0.2.4 vs spec/legacy_spec.rb in datamapper-0.2.5
- old
+ new
@@ -6,11 +6,11 @@
Fruit.first.name.should == 'Kiwi'
end
it('should allow custom foreign-key mappings') do
database do
- Fruit[:name => 'Watermelon'].devourer_of_souls.should == Animal[:name => 'Cup']
- Animal[:name => 'Cup'].favourite_fruit.should == Fruit[:name => 'Watermelon']
+ Fruit.first(:name => 'Watermelon').devourer_of_souls.should == Animal.first(:name => 'Cup')
+ Animal.first(:name => 'Cup').favourite_fruit.should == Fruit.first(:name => 'Watermelon')
end
end
end
\ No newline at end of file