Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dj2 committed Apr 28, 2011
1 parent f1272ec commit 6005580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/rack_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ def response(env)
end

class RackRoutes < Goliath::API


map '/version' do
run Proc.new { |env| [200, {"Content-Type" => "text/html"}, ["Version 0.1"]] }
end
Expand Down
4 changes: 2 additions & 2 deletions spec/integration/rack_routes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end
end
end

it 'routes to the default' do
with_api(RackRoutes) do
get_request({:path => '/donkey'}, err) do |c|
Expand All @@ -22,7 +22,7 @@
end
end
end

it 'uses API middleware' do
with_api(RackRoutes) do
post_request({:path => '/hola'}, err) do |c|
Expand Down

0 comments on commit 6005580

Please sign in to comment.