Skip to content

Commit

Permalink
Suppress a warning: instance variable @server not initialized
Browse files Browse the repository at this point in the history
lib/capybara/session.rb:170: warning: instance variable @server not initialized
  • Loading branch information
kou committed Dec 2, 2012
1 parent 599856f commit d9818a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/capybara/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d9818a8

Please sign in to comment.