Sha256: 44f32b98de5d133f1ab01eadcf4055433f88e865663640ce9a193b20a3873d99
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
require 'pry' require 'json' require 'cucumber/blanket' class FakePage attr_reader :coverage_data def initialize @coverage_data = parse_fixture_json end def parse_fixture_json json = File.read(File.join(File.dirname(__FILE__),'fixtures','simple.json')) return JSON.parse(json) # How it looks when we get it from Selenium end def evaluate_script script if script == "window.COVERAGE_RESULTS" self.coverage_data end end ## # Helper to change the lines of coverage for testing flattening # of two sets of coverage data def cov_lines end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-blanket-0.0.2 | spec/spec_helper.rb |