Sha256: 2d2953f5a4a8f4338108353bf9c2ae98f79d0b2a42b53b6b0f54e4bc9b61e0e5
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
require "spec_helper" feature "instrumenting javascript" do before do pending("needs istanbul to be installed") unless Teaspoon::Instrumentation.istanbul() end scenario "requesting with instrument=true adds istanbul instrumentation" do pending "broken with rails 4" 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 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.7.9 | spec/features/instrumentation_spec.rb |
teaspoon-0.7.8 | spec/features/instrumentation_spec.rb |