Sha256: 871264ca0da6958ac9d4238e69af929e1351607556e98c1fd14f2cf32270ea05

Contents?: true

Size: 510 Bytes

Versions: 9

Compression:

Stored size: 510 Bytes

Contents

require 'proxy_pac_rb'

RSpec::Matchers.define :be_downloaded_via do |expected|
  match do |actual|
    proxy_pac.find(actual) == expected
  end

  failure_message do |actual|
    format(%(expected that url "%s" is downloaded via "%s", but it is downloaded via "%s".), actual, expected, proxy_pac.find(actual))
  end

  failure_message_when_negated do |actual|
    format(%(expected that url "%s" is not downloaded via "%s", but it is downloaded via "%s".), actual, expected, proxy_pac.find(actual))
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
proxy_pac_rb-0.7.0 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.9 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.8 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.7 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.5 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.4 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.3 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.2 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.6.1 lib/proxy_pac_rb/rspec/matchers/url.rb