Sha256: 11fad3b01fd45ef98050043ac33bde975c132649a2343af7e1e7596d64d69712
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
require "spec_helper" feature "instrumenting javascript" do before do pending("needs istanbul to be installed") unless Teabag::Instrumentation.which('istanbul') end scenario "requesting with instrument=true adds istanbul instrumentation" do 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
5 entries across 5 versions & 1 rubygems