spec/dm/matchers/belong_to_spec.rb in dm-rspec-0.1.2 vs spec/dm/matchers/belong_to_spec.rb in dm-rspec-0.2.0
- old
+ new
@@ -15,6 +15,13 @@
context '#should_not' do
it 'fails if association exists' do
lambda { Book.should_not belong_to :author }.should fail_with "expected to not belong to author"
end
end
+
+ context 'instance of model' do
+ it "should pass" do
+ lambda{ Book.new.should belong_to :author}.should_pass
+ end
+ end
+
end