Sha256: 48fb5e9ca4afe1ccc97d5eb712293d6da71a8aeb79fbf4e688a3a09e5b6b8573

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'
require 'diff_matcher/rspec'

describe :be_matching do
  it "should call DiffMatcher::Difference" do
    pending 'how are custom matchers tested now?'
    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

5 entries across 5 versions & 1 rubygems

Version Path
diff_matcher-2.9.0 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb
diff_matcher-2.8.1 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb
diff_matcher-2.8.0 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb
diff_matcher-2.7.1 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb
diff_matcher-2.7.0 spec/diff_matcher/rspec/matchers/diff_matcher_spec.rb