Sha256: 8c6cdba74dcc0318d9e2f34f15014d5d0505e9dca18ff4cf05f1ed633208f115
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require 'spec_helper' describe Cucumber::Blanket do describe "#files" do it "is a shortcut for coverage_data#files" do subject.files.should eq subject.coverage_data.files end end describe "#extract_from" do let(:page) { FakePage.new } context "Selenium-returned blanket.js coverage data structure characteristics" do let(:cov) do subject.extract_from(page) subject.coverage_data end specify { cov.should have_key 'files' } it "shows lines of coverage for each javascript file" do cov['files'].each do |filename,linedata| filename.should match(/.js$/) linedata.each_with_index do |cov_stats,line_number| line_number.should be_a Integer (cov_stats || 0).should be_a Integer # can be nil end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-blanket-0.0.3 | spec/lib/cucumber/blanket_spec.rb |