Skip to content
Browse files

Fixed two specs.

  • Loading branch information...
1 parent 7454ca0 commit 58f3d1280e3d0aed7293c00a35f2cda9f612a42f @postmodern committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/integration/predefined_spec.rb
View
4 spec/integration/predefined_spec.rb
@@ -97,14 +97,14 @@
describe "predefined_resource_with" do
it "should find resources based on attributes they share" do
- test2 = TestModel.first_predefined_resource(:name => 'test2', :number => 2)
+ test2 = TestModel.predefined_resource_with(:name => 'test2', :number => 2)
test2.name.should == 'test2'
end
it "should raise UnknownResource if no resource shares any attribute values" do
lambda {
- TestModel.first_predefined_resource(:number => 100, :optional => 'bla')
+ TestModel.predefined_resource_with(:number => 100, :optional => 'bla')
}.should raise_error(DataMapper::Is::Predefined::UnknownResource)
end
end

0 comments on commit 58f3d12

Please sign in to comment.
Something went wrong with that request. Please try again.