Browse files

Update test order to fix weird routes definition issue

  • Loading branch information...
1 parent 0b4e0a5 commit 028324e2c1286010372ae344600820e9e3dcdf32 @j15e j15e committed Jan 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/sinatra/advanced_routes_spec.rb
View
4 spec/sinatra/advanced_routes_spec.rb
@@ -10,7 +10,7 @@ def app
before { mock_app { register Sinatra::AdvancedRoutes }}
- [:get, :head, :post, :put, :delete].each do |verb|
+ [:head, :get, :post, :put, :delete].each do |verb|
describe "HTTP #{verb.to_s.upcase}" do
describe "activation" do
@@ -24,7 +24,7 @@ def app
browse_route(verb, "/foo").should_not be_ok
end
- it "is able to deacitvate routes from a before filter" do
+ it "is able to deactivate routes from a before filter" do
route = define_route(verb, "/foo") { "bar" }
app.before { route.deactivate }
route.should be_active

0 comments on commit 028324e

Please sign in to comment.