Permalink
Browse files

Remove #run as an alias for #mount.

Let's keep it simple. Plus, "mounting" things on "racks" kind of
makes sense.
  • Loading branch information...
1 parent be5b9da commit afbf6b7b79162551ce109eb83ba4b6221042b5d2 @mdub committed Apr 5, 2013
Showing with 3 additions and 5 deletions.
  1. +1 −1 README.markdown
  2. +0 −2 lib/sham_rack/registration.rb
  3. +2 −2 spec/sham_rack_spec.rb
View
@@ -55,7 +55,7 @@ Using it
### Any old Rack app
- ShamRack.at("google.com").run(my_google_stub)
+ ShamRack.at("google.com").mount(my_google_stub)
### General-purpose stubbing
@@ -64,8 +64,6 @@ def unmount
@app = nil
end
- alias run mount
-
def rackup(&block)
require "rack"
mount(Rack::Builder.new(&block).to_app)
View
@@ -111,11 +111,11 @@ class NetHttpProhibited < StandardError; end
end
- describe "#run" do
+ describe "#mount" do
it "is sugar for ShamRack.mount" do
- ShamRack.at("hello.xyz").run(GreetingApp.new)
+ ShamRack.at("hello.xyz").mount(GreetingApp.new)
open("http://hello.xyz").read.should == "Hello, world"

0 comments on commit afbf6b7

Please sign in to comment.