Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert the last three commits - we already have scenarios for has_FOO in

features/built-in-matchers/predicate-matchers.feature

Squashed commit of the following:

commit 521a6f025a786076f5b10beea553f74b01a17b10
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:47 2011 -0500

    Revert "Confirmed the doc format outputs the right values"

    This reverts commit 00f014d.

commit f218740f4338b2d92bf978a361f01756727f37b0
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:37 2011 -0500

    Revert "Tweaks to has.feature - Closes #68"

    This reverts commit 933be5b.

commit d8361f659f26dd011bdcdca9fc38c159ed3a13e0
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:12 2011 -0500

    Revert "Add has.feature to Relish .nav"

    This reverts commit 5ca17e7.
  • Loading branch information...
commit 155e5c05216bd4e7aca163b9be64f6b6c9a7ccea 1 parent 5ca17e7
@dchelimsky dchelimsky authored
Showing with 0 additions and 33 deletions.
  1. +0 −1  features/.nav
  2. +0 −32 features/built_in_matchers/has.feature
View
1  features/.nav
@@ -9,7 +9,6 @@
- exist.feature
- expect_change.feature
- expect_error.feature
- - has.feature
- have.feature
- include.feature
- match.feature
View
32 features/built_in_matchers/has.feature
@@ -1,32 +0,0 @@
-Feature: has_(predicate) matcher
-
- RSpec provides a predicate matcher such that:
-
- * obj.should have_key(x)
- * obj.should have_item_with_name(x)
-
- will set an expectation on the appropriate predicate method:
-
- * obj.has_key?(x)
- * obj.has_item_with_name?(x)
-
- Scenario: predicate method usage
- Given a file named "have_item_with_name_spec.rb" with:
- """
- class Array
- def has_item_with_name?(name)
- self.include?(name)
- end
- end
-
- describe ["francois", "jake"] do
- it { should have_item_with_name("francois") }
- it { should_not have_item_with_name("john") }
- end
- """
-
- When I run `rspec --format doc have_item_with_name_spec.rb`
- Then the examples should all pass
- And the output should contain all of these:
- | should have item with name "francois" |
- | should not have item with name "john" |
Please sign in to comment.
Something went wrong with that request. Please try again.