Skip to content

Commit

Permalink
Fix: Ruby 1.8.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jan 5, 2013
1 parent 4fa7617 commit 51aa546
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions spec/grape/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1622,17 +1622,15 @@ def serializable_hash

context "catch-all" do
before do
api1 = Class.new(Grape::API) do
version 'v1', :using => :path
get "hello" do
"v1"
end
end
api2 = Class.new(Grape::API) do
version 'v2', :using => :path
get "hello" do
"v2"
end
api1 = Class.new(Grape::API)
api1.version 'v1', :using => :path
api1.get "hello" do
"v1"
end
api2 = Class.new(Grape::API)
api2.version 'v2', :using => :path
api2.get "hello" do
"v2"
end
subject.mount api1
subject.mount api2
Expand Down

0 comments on commit 51aa546

Please sign in to comment.