Skip to content
Browse files

Added default for path

  • Loading branch information...
1 parent 155a0bb commit 05413b80dc987a99a4a2e2b213794ae48ee7828f @nielsm committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/whack_a_node/proxy.rb
  2. +1 −1 lib/whack_a_node/redirect.rb
  3. +1 −1 lib/whack_a_node/whacky.rb
  4. +1 −1 spec/whack-a-node_spec.rb
View
2 lib/whack_a_node/proxy.rb
@@ -2,7 +2,7 @@
module WhackANode
class Proxy
- def initialize(path,host="localhost", port="8810")
+ def initialize(path="/",host="localhost", port="8810")
@path = path
@host = host
@port = port
View
2 lib/whack_a_node/redirect.rb
@@ -1,7 +1,7 @@
module WhackANode
class Redirect
- def initialize(path,host="localhost", port="8810")
+ def initialize(path="/",host="localhost", port="8810")
@path = path
@host = host
@port = port
View
2 lib/whack_a_node/whacky.rb
@@ -1,6 +1,6 @@
module WhackANode
module Whacky
- def initialize(path,host="localhost", port="8810")
+ def initialize(path="/",host="localhost", port="8810")
@path = path
@host = host
@port = port
View
2 spec/whack-a-node_spec.rb
@@ -4,7 +4,7 @@
describe "WhackANode" do
include Rack::Test::Methods
include WebMock::API
- class WhackyTest < WhackANode
+ class WhackyTest < WhackANode::Proxy
def rewrite_env(env)
env['PORT'] = 90210
end

0 comments on commit 05413b8

Please sign in to comment.
Something went wrong with that request. Please try again.