Sha256: 4eddcb46fc8a7792fab785b9b9937161334dab53616cda4e42f12982ea5f335b
Contents?: true
Size: 810 Bytes
Versions: 11
Compression:
Stored size: 810 Bytes
Contents
RSpec::Matchers.define :be_the_same_proxy_pac_file do |expected| define_method :loader do ProxyPacRb::ProxyPacLoader.new end match do |actual| @file_a = ProxyPacRb::ProxyPacFile.new(source: actual) loader.load(@file_a) @file_b = ProxyPacRb::ProxyPacFile.new(source: expected) loader.load(@file_b) @file_a == @file_b end failure_message do format(%(expected that proxy.pac "%s" is equal to proxy.pac "%s", but it is not equal.\n\nActual:\n%s\n\nExpected:\n%s), @file_a.source, @file_b.source, @file_a.content, @file_b.content) end failure_message_when_negated do format(%(expected that proxy.pac "%s" is not equal to proxy.pac "%s", but it is equal.\n\nActual:\n%s\n\nExpected:\n%s), @file_a.source, @file_b.source, @file_a.content, @file_b.content) end end
Version data entries
11 entries across 11 versions & 1 rubygems