Sha256: eb142df801e272f39299b6a33c2192c4e36a5ffdcaa00ba2d126630e1017fe2d
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-blanket-0.1.0 | spec/spec_helper.rb |
cucumber-blanket-0.0.3 | spec/spec_helper.rb |