Sha256: 6c608cc43b9ed5cd3f2fa6a261dc78946842d4ece53e6b685ba3a1b5b04c03c6

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'
require 'diff_matcher/rspec'

describe :be_matching do
  it "should call DiffMatcher::Difference" do
    DiffMatcher::Difference.should_receive(:new).with(
      :expected, :actual, { :color_enabled => RSpec::configuration.color_enabled?, :quiet => true }.merge({ :foo => 'bar' })
    ).and_return(double(:matching? => true))

    :actual.should be_matching(:expected).with_options :foo => 'bar'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
diff_matcher-2.6.0 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb
diff_matcher-2.5.0 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb