Sha256: 5133202dad19180ce322a8782e0f818605775e6396e8cb22f33f2d87fe95cb93

Contents?: true

Size: 787 Bytes

Versions: 4

Compression:

Stored size: 787 Bytes

Contents

Feature: detect matcher

  Scenario: when the matcher matches
    Given a file named "example_spec.rb" with:
    """ruby

        describe "detecting even numbers" do
          it "detects even" do
            expect([2]).to detect(&:even?)
          end
        end
      """
    When I run rspec
    Then the examples should all pass

  Scenario: failures are correctly reported
    Given a file named "example_spec.rb" with:
    """ruby

        describe "detecting even numbers" do
          it "fails for odd numbers" do
            expect([1]).to detect(&:even?)
          end
        end
      """
    When I run rspec
    Then the output should contain "Failure/Error: expect([1]).to detect(&:even?)"
      And the output should contain "expected [1] to include (satisfy block)"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-change_to_now-1.0.3 features/detect.feature
rspec-change_to_now-1.0.2 features/detect.feature
rspec-change_to_now-1.0.1 features/detect.feature
rspec-change_to_now-1.0.0 features/detect.feature