Permalink
Browse files

add example for 'it { should_not matcher }'

There was a cuke, but no example.
  • Loading branch information...
1 parent a4607d5 commit 1e8c6e0bab3329cbeea38cb815c093cb4488850d @dchelimsky dchelimsky committed Mar 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/rspec/core/subject_spec.rb
View
2 spec/rspec/core/subject_spec.rb
@@ -85,9 +85,11 @@ module RSpec::Core
group = ExampleGroup.describe("group") do
subject { self }
def ok?; true; end
+ def not_ok?; false; end
it { should eq(self) }
it { should be_ok }
+ it { should_not be_not_ok }
end
group.run.should be_true

0 comments on commit 1e8c6e0

Please sign in to comment.