Skip to content

Commit

Permalink
JariBakken: Fix specs and warnings for Ruby 1.9.3
Browse files Browse the repository at this point in the history
r13176
  • Loading branch information
jarib committed Aug 2, 2011
1 parent bb928d8 commit f93faae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions rb/lib/selenium/rake/server_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

module Selenium
module Rake
include ::Rake::DSL if defined?(::Rake::DSL)

class MissingJarFileError < StandardError
end


#
# Defines rake tasks for starting, stopping and restarting the Selenium server.
#
Expand All @@ -28,6 +26,7 @@ class MissingJarFileError < StandardError
#

class ServerTask
include ::Rake::DSL if defined?(::Rake::DSL)

#
# Path to the selenium server jar
Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/socket_poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def listening?

sock.close
true
rescue *NOT_CONNECTED_ERRORS => e
rescue *NOT_CONNECTED_ERRORS
$stderr.puts [@host, @port].inspect if $DEBUG
false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ module Firefox
let(:profile) { Profile.new }

def read_generated_prefs(from = nil)
io = StringIO.new

File.stub(:open).and_yield(io)
prof = from || profile()
dir = prof.layout_on_disk

prof.layout_on_disk

io.string
File.read(File.join(dir, 'user.js'))
end

it "should set additional preferences" do
Expand Down

0 comments on commit f93faae

Please sign in to comment.