Sha256: 36fd993c144e2f389e0036759a74534739cac5819a26063ba07d1c63419691f6

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

# encoding: utf-8
RSpec::Matchers.define :return_proxy do |expected|
  match do |actual|
    actual.verbatim == expected
  end

  failure_message do |actual|
    "expected that \"#{actual.pac_file}\" returns \"#{expected}\", but it returns \"#{actual.verbatim}\" as proxy."
  end

  failure_message_when_negated do |actual|
    "expected that \"#{actual.pac_file}\" not returns \"#{expected}\", but it returns \"#{actual.verbatim}\" as proxy."
  end

  description do
    "to return proxy \"#{expected}\"."
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 lib/proxy_tester/rspec/matchers/return_proxy.rb
proxy_tester-0.1.8 lib/proxy_tester/rspec/matchers/return_proxy.rb