Permalink
Browse files

Slight tweak to the cucumber feature to get it passing.

  • Loading branch information...
1 parent 7eed1e0 commit 15e2cc34540c296945f603866d0cb6d4c5552197 @lukeredpath committed Jul 25, 2011
Showing with 6 additions and 7 deletions.
  1. +5 −5 features/built_in_matchers/include.feature
  2. +1 −2 spec/rspec/matchers/include_spec.rb
@@ -163,8 +163,8 @@ Feature: include matcher
"""
When I run `rspec fuzzy_include_matcher_spec.rb`
Then the output should contain all of these:
- | 8 examples, 4 failures |
- | expected "[Joe, Fred, John, Luke, David]" to include as user named 'Richard' |
- | expected "[Joe, Fred, John, Luke, David]" not to include a user named 'Fred' |
- | expected "[Joe, Fred, John, Luke, David]" to include a user named 'Sarah' |
- | expected "[Joe, Fred, John, Luke, David]" not to include a user named 'Luke' |
+ | 8 examples, 4 failures |
+ | expected [Joe, Fred, John, Luke, David] to include a user named 'Richard' |
+ | expected [Joe, Fred, John, Luke, David] not to include a user named 'Fred' |
+ | expected [Joe, Fred, John, Luke, David] to include a user named 'Sarah' |
+ | expected [Joe, Fred, John, Luke, David] not to include a user named 'Luke' |
@@ -364,8 +364,7 @@
end
describe "should include(multiple, matcher, arguments)" do
- context 'for an array target' do
-
+ context 'for an array target' do
it "passes if target includes items satisfying all matchers" do
['foo', 'bar', 'baz'].should include(string_containing_string("ar"), string_containing_string('oo'))
end

0 comments on commit 15e2cc3

Please sign in to comment.