Sha256: d9c0083db517da78a6cb1072eb3316c03cbfaa3b1d5dbb7ba342ec7d76185cca
Contents?: true
Size: 1006 Bytes
Versions: 3
Compression:
Stored size: 1006 Bytes
Contents
require 'spec_helper' describe Selenium::WebDriver::Firefox::Profile do before { described_class.firebug_version = nil } # Reset describe ".firebug_version" do it "defaults to 1.10.2" do described_class.firebug_version.should == "1.10.2" end it "can be explicitly set" do described_class.firebug_version = '1.7.0' described_class.firebug_version.should == "1.7.0" end end describe "#enable_firebug" do it "adds the Firebug extension" do subject.should_receive(:add_extension).with(/firebug-1\.10\.2\.xpi$/) subject.enable_firebug end it "honors the configured version" do Selenium::WebDriver::Firefox::Profile.firebug_version = '1.6.2' subject.should_receive(:add_extension).with(/firebug-1\.6\.2\.xpi$/) subject.enable_firebug end it "accepts an optional version argument" do subject.should_receive(:add_extension).with(/firebug-1\.7\.0\.xpi$/) subject.enable_firebug("1.7.0") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capybara-firebug-1.2.2 | spec/enable_firebug_spec.rb |
capybara-firebug-1.2.1 | spec/enable_firebug_spec.rb |
capybara-firebug-1.2.0 | spec/enable_firebug_spec.rb |