ruby on rails - How to ignore rescue_from in ApplicationController in rspec tests? -



ruby on rails - How to ignore rescue_from in ApplicationController in rspec tests? -

by default, cucumber ignores rescue_from in applicationcontroller , reports exceptions directly. accomplished next line in cucumber env.rb file

# in features/support/env.rb actioncontroller::base.allow_rescue = false

is there way rspec ignore rescue_from well? (specifically, i'm wishing rspec ignore rescue_from cancan::accessdenied.)

can not set same line spec_helper?

why not setup have logged in user nowadays when testing? improve test. can set hook spec_helper before tests set sign in in 1 place specs.

ruby-on-rails ruby-on-rails-3 rspec2 cancan rspec-rails

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -