Skip to content

Commit

Permalink
Remove "ShamRack.mount".
Browse files Browse the repository at this point in the history
  • Loading branch information
mdub committed Nov 19, 2015
1 parent 0f5ceb7 commit b679c89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 1.4.0 (PENDING)

* Add support for `ShamRack.allow_network_connections`.
* Remove support for `ShamRack.mount`.

## 1.3.6 (5-Apr-2013)

Expand Down
4 changes: 0 additions & 4 deletions lib/sham_rack/registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ def application_for(address, port = nil)
end
end

def mount(app, address, port = nil)
at(address, port).mount(app)
end

private

def mount_point_for(address, port)
Expand Down
14 changes: 1 addition & 13 deletions spec/sham_rack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NetHttpProhibited < StandardError; end
describe "mounted Rack application" do

before(:each) do
ShamRack.mount(GreetingApp.new, "www.greetings.com")
ShamRack.at("www.greetings.com").mount(GreetingApp.new)
end

it "can be accessed using Net::HTTP" do
Expand Down Expand Up @@ -174,18 +174,6 @@ class NetHttpProhibited < StandardError; end

end

describe ".mount" do

it "is deprecated, but still works" do

ShamRack.mount(GreetingApp.new, "hello.xyz")

expect(open("http://hello.xyz").read).to eq("Hello, world")

end

end

describe "response" do

before(:each) do
Expand Down

0 comments on commit b679c89

Please sign in to comment.