Sha256: 00087f43cf280f78a56c27d1bb4fe10885724333f11a2c0972c6e9dcd529ddaa

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

require 'spec_helper'

describe Cucumber::Blanket do
  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.2 spec/lib/cucumber/blanket_spec.rb