File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module BrowserStack
66class Local
77 attr_reader :pid
88
9- def initialize ( key = nil )
9+ def initialize ( key = ENV [ "BROWSERSTACK_ACCESS_KEY" ] )
1010 @key = key
1111 @logfile = File . join ( Dir . pwd , "local.log" )
1212 end
Original file line number Diff line number Diff line change @@ -8,20 +8,20 @@ def setup
88 end
99
1010 def test_check_pid
11- @bs_local . start ( { 'key ' => ENV [ "BROWSERSTACK_ACCESS_KEY" ] } )
11+ @bs_local . start ( { 'force ' => true } )
1212 refute_nil @bs_local . pid , 0
1313 end
1414
1515 def test_is_running
16- @bs_local . start ( { 'key ' => ENV [ "BROWSERSTACK_ACCESS_KEY" ] } )
16+ @bs_local . start ( { 'force ' => true } )
1717 assert_equal true , @bs_local . isRunning
1818 end
1919
2020 def test_multiple_binary
21- @bs_local . start ( { 'key ' => ENV [ "BROWSERSTACK_ACCESS_KEY" ] } )
21+ @bs_local . start ( { 'force ' => true } )
2222 bs_local_2 = BrowserStack ::Local . new
2323 assert_raises BrowserStack ::LocalException do
24- bs_local_2 . start ( { 'key ' => ENV [ "BROWSERSTACK_ACCESS_KEY" ] } )
24+ bs_local_2 . start ( { 'force ' => true } )
2525 end
2626 end
2727
You can’t perform that action at this time.
0 commit comments