Permalink
Browse files

remove superclass middleware test

  • Loading branch information...
dj2 committed May 8, 2012
1 parent 7d4de51 commit 7e841ba7b18cb4e800c807f342f1c188fd485ef1
Showing with 0 additions and 17 deletions.
  1. +0 −17 spec/unit/api_spec.rb
View
@@ -9,22 +9,5 @@
it "doesn't change after multi calls" do
2.times { DummyApi.should have(2).middlewares }
end
-
- it "should include all middlewares from superclasses" do
- c1 = Class.new(Goliath::API) do
- use Goliath::Rack::Params
- end
-
- c2 = Class.new(c1) do
- use Goliath::Rack::DefaultMimeType
- end
-
- base_middlewares = DummyApi.middlewares
- middlewares = c2.middlewares - base_middlewares
-
- middlewares.size.should == 2
- middlewares[0][0].should == Goliath::Rack::Params
- middlewares[1][0].should == Goliath::Rack::DefaultMimeType
- end
end
end

0 comments on commit 7e841ba

Please sign in to comment.