Sha256: 48d05ad780d0d2eb2b77bdea4dfb3d705cf318979066c3ccc4daf8b4354b6a7f

Contents?: true

Size: 752 Bytes

Versions: 37

Compression:

Stored size: 752 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.

  @wip
  Scenario: define a diffable matcher
    Given a file named "diffable_matcher_spec.rb" with:
      """ruby
      RSpec::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 `rspec ./diffable_matcher_spec.rb --diff`
    Then the exit status should not be 0

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

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-expectations-2.14.5/features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.99.2 features/custom_matchers/define_diffable_matcher.feature
dxruby_rp5-0.0.4 spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.99.1 features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.99.0 features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.99.0.rc1 features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-3.0.0.beta2 features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.99.0.beta2 features/custom_matchers/define_diffable_matcher.feature
rspec-expectations-2.14.5 features/custom_matchers/define_diffable_matcher.feature
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature
dxruby_rp5-0.0.3 spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature