Skip to content

Commit

Permalink
updated path with original directory we need to make this more dynami…
Browse files Browse the repository at this point in the history
…c and move the skeleton project to the temp dir
  • Loading branch information
orieken committed Mar 24, 2014
1 parent 8f6ec51 commit 5b3fd4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/taza/browser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@
end

it "should use environment settings for server port and ip" do
Taza::Settings.stubs(:path).returns(File.join('spec','sandbox'))
Taza::Settings.stubs(:path).returns(File.join(@original_directory,'spec','sandbox'))
ENV['SERVER_PORT'] = 'server_port'
ENV['SERVER_IP'] = 'server_ip'
Selenium::SeleniumDriver.expects(:new).with('server_ip','server_port',anything,anything)
Taza::Browser.create(Taza::Settings.config("SiteName"))
Taza::Browser.create(
Taza::Settings.config("SiteName"))
end

it "should use environment settings for timeout" do
Taza::Settings.stubs(:path).returns(File.join('spec','sandbox'))
Taza::Settings.stubs(:path).returns(File.join(@original_directory,'spec','sandbox'))
ENV['TIMEOUT'] = 'timeout'
Selenium::SeleniumDriver.expects(:new).with(anything,anything,anything,'timeout')
Taza::Browser.create(Taza::Settings.config("SiteName"))
Expand Down

0 comments on commit 5b3fd4a

Please sign in to comment.