spec/orange/stack_spec.rb in orange-0.0.4 vs spec/orange/stack_spec.rb in orange-0.0.5
- old
+ new
@@ -102,10 +102,11 @@
end
it "should rebuild stack if auto_reload! set" do
x= Orange::Stack.new do
auto_reload!
+ use MockMiddleware
run MockExitware.new
end
x.app.should_not eql(x.app)
end
@@ -155,21 +156,14 @@
restfuls = x.middlewarez.select{|y| y.instance_of?(Orange::Middleware::RestfulRouter)}
restfuls.should_not be_empty
restfuls.should have(1).items
end
- it "should have not have recapture middleware for a default stack" do
+ it "should have not have extra middleware for a default stack" do
x= Orange::Stack.new MockApplication
x.middlewarez.should have(1).middlewares
end
-
- it "should have recapture middleware by default if stack created with block" do
- x= Orange::Stack.new do
- run MockExitware.new
- end
- x.middlewarez.should have(2).middlewares
- end
-
+
it "should not include Rack::OpenID unless openid_access_control enabled" do
defined?(Rack::OpenID).should be_nil
x= Orange::Stack.new do
openid_access_control
run MockExitware.new
\ No newline at end of file