spec/dm/matchers/have_many_spec.rb in dm-rspec-0.2.0 vs spec/dm/matchers/have_many_spec.rb in dm-rspec-0.2.1
- old
+ new
@@ -15,6 +15,12 @@
context '#should_not' do
it 'fails if association exists' do
lambda { Author.should_not have_many :books}.should fail_with "expected to not have many books"
end
end
+
+ context 'instance of model' do
+ it "should pass" do
+ lambda { Author.new.should have_many :books }.should_pass
+ end
+ end
end