Sha256: 1aff9554943353524de1674c9c8608ba771ab7ccd4064139095fb3daf3f0a9d8
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
require 'proxy_pac_rb' RSpec::Matchers.define :be_downloaded_via do |expected| match do |actual| @old_actual = actual @actual = proxy_pac.find(actual).to_s values_match? expected, @actual end failure_message do format(%(expected that url "%s" is downloaded via "%s", but it is downloaded via "%s".), @old_actual, expected, @actual) end failure_message_when_negated do format(%(expected that url "%s" is not downloaded via "%s", but it is downloaded via "%s".), @old_actual, expected, @actual) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
proxy_pac_rb-0.9.1 | lib/proxy_pac_rb/rspec/matchers/url.rb |
proxy_pac_rb-0.8.2 | lib/proxy_pac_rb/rspec/matchers/url.rb |
proxy_pac_rb-0.8.1 | lib/proxy_pac_rb/rspec/matchers/url.rb |