Sha256: fdc32aed8a9511ebcb83fe344ce291f9a03bd5add7adfeaea9efdc02a5f52130
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
require "spec_helper" feature "instrumenting javascript" do before do pending("needs istanbul to be installed") unless Teaspoon::Instrumentation.executable end #scenario "requesting with instrument=true adds istanbul instrumentation" do # pending("needs to be figured out") # visit "/assets/instrumented1.js?instrument=true" # expect(html).to include("if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }") #end # #scenario "requesting without instrument=true doesn't do anything" do # pending("needs to be figured out") # visit "/assets/instrumented2.js?instrument=false" # expect(html).to_not include("if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }") #end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teaspoon-0.9.1 | spec/features/instrumentation_spec.rb |
teaspoon-0.9.0 | spec/features/instrumentation_spec.rb |