diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-19 11:04:31 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-19 11:04:31 -0700 |
commit | 311e3ec762bc6863367d5d6ac6548d02a2d78e03 (patch) | |
tree | 9610c0a2e6927ffedfd385df50cd240ee5a050e4 | |
parent | 7438723f6ae13605a48c5db63839a829a19f5127 (diff) | |
download | puppet-311e3ec762bc6863367d5d6ac6548d02a2d78e03.tar.gz puppet-311e3ec762bc6863367d5d6ac6548d02a2d78e03.tar.xz puppet-311e3ec762bc6863367d5d6ac6548d02a2d78e03.zip |
maint: mangle grammer in rspec to avoid Jenkins fail...
Apparently 'expect { ... } .not_to' is considered unnecessary contortion by
the rspec authors, so we only have 'expect { ... } .to_not' in some versions
of rspec.
This updates the test code to reflect that bit of annoyance.
-rw-r--r-- | spec/shared_behaviours/documentation_on_faces.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/shared_behaviours/documentation_on_faces.rb b/spec/shared_behaviours/documentation_on_faces.rb index effca678c..41b4015c9 100644 --- a/spec/shared_behaviours/documentation_on_faces.rb +++ b/spec/shared_behaviours/documentation_on_faces.rb @@ -4,13 +4,13 @@ shared_examples_for "documentation on faces" do describe "#summary" do it "should accept a summary" do text = "this is my summary" - expect { subject.summary = text }.not_to raise_error + expect { subject.summary = text }.to_not raise_error subject.summary.should == text end it "should accept a long, long, long summary" do text = "I never know when to stop with the word banana" + ("na" * 1000) - expect { subject.summary = text }.not_to raise_error + expect { subject.summary = text }.to_not raise_error subject.summary.should == text end |