Sha256: 482a19d73a32b19bf34564419fdea3c7691985158da29f2eb2cca7dc6fbf04fa

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
proxy_pac_rb-0.6.0 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.10 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.9 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.8 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.7 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.6 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.5 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.4 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.3 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.2 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.1 lib/proxy_pac_rb/rspec/matchers/url.rb
proxy_pac_rb-0.5.0 lib/proxy_pac_rb/rspec/matchers/url.rb