Skip to content

Commit

Permalink
Fix legacy Firefox capabilities unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Apr 17, 2019
1 parent 996f92f commit 0bc019a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rb/spec/unit/selenium/webdriver/firefox/legacy/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ module Firefox
module Legacy
describe Driver do
let(:launcher) { instance_double(Launcher, launch: nil, quit: nil, url: 'http://localhost:4444/wd/hub') }
let(:resp) { {'sessionId' => 'foo', 'value' => Remote::Capabilities.firefox.as_json} }
let(:resp) { {'sessionId' => 'foo', 'value' => Remote::Capabilities.firefox_legacy.as_json} }
let(:http) { instance_double(Remote::Http::Default, call: resp).as_null_object }
let(:caps) { Remote::Capabilities.firefox }
let(:caps) { Remote::Capabilities.firefox_legacy }

before do
allow(Remote::Capabilities).to receive(:firefox).and_return(caps)
allow(Remote::Capabilities).to receive(:firefox_legacy).and_return(caps)
allow(Launcher).to receive(:new).and_return(launcher)
end

Expand Down

0 comments on commit 0bc019a

Please sign in to comment.