Skip to content

Commit

Permalink
fixed spec
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Jun 9, 2010
1 parent 8e3ef28 commit 2b93d6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/http_router/route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def condition(conditions)
@conditions.key?(k) ?
@conditions[k] << v :
@conditions[k] = Array(v)
@conditions[k].flatten!
end
self
end
Expand Down
3 changes: 1 addition & 2 deletions spec/rack/dispatch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
describe "get" do
before(:each) do
route_set.reset!
route_set.get('/sample').to(@app)
route_set.get('/sample').head.to(@app)
end

it "should dispatch a GET request" do
Expand All @@ -89,7 +89,6 @@
end

it "should dispatch a HEAD request" do
pending
response = route_set.call_with_mock_request("/sample", "HEAD")
response.body.should eql("Hello World!")
end
Expand Down

0 comments on commit 2b93d6e

Please sign in to comment.