Sha256: edb30bcebf21a8de9d4820c5ec2133c32baec4907cd72a4da03b3794343cdf8d
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "har" module HAR module SpecHelper def fixture_path(name) File.join(File.expand_path("../fixtures", __FILE__), name) end def har_path(name) fixture_path File.join("hars", "#{name}.har") end def json(path) JSON.parse(File.read(path)) end def all_hars Dir[fixture_path("hars/*.har")] end def google_path har_path "google.com" end def good_hars all_hars.reject { |e| e =~ /bad/ } end end end RSpec.configure do |c| c.include HAR::SpecHelper end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
har-0.0.3 | spec/spec_helper.rb |
har-0.0.2 | spec/spec_helper.rb |
har-0.0.1 | spec/spec_helper.rb |
har-0.0.1.dev | spec/spec_helper.rb |