Skip to content

Commit

Permalink
add failing example demonstrating failure of its(:nil_value) {should …
Browse files Browse the repository at this point in the history
…be_nil}
  • Loading branch information
dchelimsky committed Jun 4, 2010
1 parent c1542d0 commit 4d4d0cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/rspec/core/example_group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,17 @@ module RSpec::Core
context "subject modified in before block" do
before { subject.class.should == RSpec::Core::ExampleGroup }
end

context "with nil value" do
subject do
Class.new do
def nil_value
nil
end
end.new
end
its(:nil_value) { should be_nil }
end
end

describe "#top_level_description" do
Expand Down

0 comments on commit 4d4d0cf

Please sign in to comment.