Permalink
Browse files

failing test

  • Loading branch information...
1 parent f3961cd commit e31d0a0c638e43407cb83bad6a51172f4b5ec2d9 @sarmiena sarmiena committed Apr 2, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/warden/test/test_mode_spec.rb
@@ -64,4 +64,13 @@
app.call(env_with_params)
$captures.should == []
end
+
+ context "asset requests" do
+ it "should not execute on_next_request blocks if this is an asset request" do
+ app = setup_rack(@app)
+ Warden.on_next_request{|w| $captures << :first }
+ app.call(env_with_params("/assets/fun.gif"))
+ $captures.should == []
+ end
+ end
end

0 comments on commit e31d0a0

Please sign in to comment.