spec/teaspoon/instrumentation_spec.rb in teaspoon-0.7.7 vs spec/teaspoon/instrumentation_spec.rb in teaspoon-0.7.8
- old
+ new
@@ -10,10 +10,10 @@
let(:asset) { double('asset', source: nil, pathname: 'path/to/instrument.js') }
let(:response) { [200, {"Content-Type" => "application/javascript"}, asset] }
let(:env) { {"QUERY_STRING" => "instrument=true"} }
before do
- Teaspoon::Instrumentation.stub(:which).and_return("/path/to/istanbul")
+ Teaspoon::Instrumentation.stub(:istanbul).and_return("/path/to/istanbul")
Teaspoon::Instrumentation.instance_variable_set(:@executable, nil)
end
after do
Teaspoon::Instrumentation.instance_variable_set(:@executable, nil)