Sha256: 51d1824645efda57ce440217179d4c311d1676368815c7a415d00bada196c962
Contents?: true
Size: 1003 Bytes
Versions: 2
Compression:
Stored size: 1003 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.8.4" do described_class.firebug_version.should == "1.8.4" 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\.8\.4\.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara-firebug-1.0.1 | spec/enable_firebug_spec.rb |
capybara-firebug-1.0.0 | spec/enable_firebug_spec.rb |