Skip to content

Commit 7530f33

Browse files
committed
[rb] fix test to not use keyword
1 parent 932cbf9 commit 7530f33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rb/spec/integration/selenium/webdriver/firefox/driver_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ module Selenium
2323
module WebDriver
2424
module Firefox
2525
describe Driver, exclusive: {browser: :firefox} do
26+
let(:extension) { '../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi' }
27+
2628
describe '#print_options' do
2729
let(:magic_number) { 'JVBER' }
2830

@@ -52,8 +54,6 @@ module Firefox
5254
end
5355

5456
describe '#install_addon' do
55-
let(:extension) { '../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi' }
56-
5757
it 'with path as parameter' do
5858
ext = File.expand_path(extension, __dir__)
5959
driver.install_addon(ext)
@@ -67,8 +67,8 @@ module Firefox
6767

6868
describe '#uninstall_addon' do
6969
it 'uninstalls based on id' do
70-
ext = File.expand_path('../../../../../../third_party/firebug/favourite_colour-1.1-an+fx.xpi', __dir__)
71-
id = driver.install_addon(path: ext)
70+
ext = File.expand_path(extension, __dir__)
71+
id = driver.install_addon(ext)
7272
driver.uninstall_addon(id)
7373
end
7474
end

0 commit comments

Comments
 (0)