Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added default for path

  • Loading branch information...
commit 05413b80dc987a99a4a2e2b213794ae48ee7828f 1 parent 155a0bb
@nielsm authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.