Skip to content
Browse files

add failing example demonstrating failure of its(:nil_value) {should …

…be_nil}
  • Loading branch information...
1 parent c1542d0 commit 4d4d0cf4e878d5260b5c8fee403fcdae831ba975 @dchelimsky dchelimsky committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 spec/rspec/core/example_group_spec.rb
View
11 spec/rspec/core/example_group_spec.rb
@@ -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

0 comments on commit 4d4d0cf

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