Permalink
Browse files

Suppress a warning: instance variable @server not initialized

lib/capybara/session.rb:170: warning: instance variable @server not initialized
  • Loading branch information...
1 parent 599856f commit d9818a8109d75b5b7ac71c3dcc105da0c3d593d4 @kou kou committed Dec 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/capybara/session.rb
View
@@ -51,6 +51,8 @@ def initialize(mode, app=nil)
@app = app
if Capybara.run_server and @app and driver.needs_server?
@server = Capybara::Server.new(@app).boot
+ else
+ @server = nil
end
end

0 comments on commit d9818a8

Please sign in to comment.