Sha256: 79459ed76fa289ef6c2a30164ce163b161abf203a0c07fdaa1e5493088d06b94

Contents?: true

Size: 745 Bytes

Versions: 32

Compression:

Stored size: 745 Bytes

Contents

Feature: define diffable matcher

  When a matcher is defined as diffable, and the --diff
  flag is set, the output will include a diff of the submitted
  objects.

  Scenario: define a diffable matcher
    Given a file named "diffable_matcher_spec.rb" with:
      """
      Spec::Matchers.define :be_just_like do |expected|
        match do |actual|
          actual == expected
        end
        
        diffable
      end

      describe "this" do
        it {should be_just_like("that")}
      end
      """
    When I run "spec diffable_matcher_spec.rb --diff"
    Then the exit code should be 256

    And the stdout should include "should be just like \"that\""
    And the stdout should include "Diff:\n@@ -1,2 +1,2 @@\n-that\n+this"

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 features/matchers/define_diffable_matcher.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/matchers/define_diffable_matcher.feature
rspec-1.3.2 features/matchers/define_diffable_matcher.feature
rspec-1.3.1 features/matchers/define_diffable_matcher.feature
rspec-1.3.1.rc features/matchers/define_diffable_matcher.feature
rspec-1.3.0 features/matchers/define_diffable_matcher.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/matchers/define_diffable_matcher.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/matchers/define_diffable_matcher.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/matchers/define_diffable_matcher.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/matchers/define_diffable_matcher.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/matchers/define_diffable_matcher.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/matchers/define_diffable_matcher.feature
media-path-0.1.2 vendor/rspec/features/matchers/define_diffable_matcher.feature
simple-templater-0.0.1.3 vendor/rspec/features/matchers/define_diffable_matcher.feature
pupu-0.0.2.pre vendor/rspec/features/matchers/define_diffable_matcher.feature
media-path-0.1.1.pre vendor/rspec/features/matchers/define_diffable_matcher.feature
simple-templater-0.0.1.2 vendor/rspec/features/matchers/define_diffable_matcher.feature
media-path-0.1.1 vendor/rspec/features/matchers/define_diffable_matcher.feature
simple-templater-0.0.1.1 vendor/rspec/features/matchers/define_diffable_matcher.feature
pupu-0.0.2 vendor/rspec/features/matchers/define_diffable_matcher.feature