Skip to content
Browse files

No need to test re-raise with Rails

  • Loading branch information...
1 parent 85dafe3 commit 3daa1b860cf3cb64a3c171474b0fe609eddcd62b @winton committed Dec 2, 2009
Showing with 0 additions and 5 deletions.
  1. +0 −1 spec/fixtures/rails/config/environment.rb
  2. +0 −4 spec/rack/lilypad_spec.rb
View
1 spec/fixtures/rails/config/environment.rb
@@ -41,5 +41,4 @@
ENV['RACK_ENV'] = ENV['RAILS_ENV']
config.middleware.insert_after(ActionController::Failsafe, Rack::Lilypad, 'xxx')
- config.middleware.delete(ActionController::Failsafe) # so we can test re-raise
end
View
4 spec/rack/lilypad_spec.rb
@@ -74,10 +74,6 @@ def app
@http.should_receive(:post)
get "/pulse" rescue nil
end
-
- it "should re-raise the exception" do
- lambda { get "/pulse" }.should raise_error(TestError)
- end
it "should not do anything if non-production environment" do
ENV['RACK_ENV'] = 'development'

0 comments on commit 3daa1b8

Please sign in to comment.
Something went wrong with that request. Please try again.