Testing error pages in Rails with Rspec + Capybara

后端 未结 5 2138
Happy的楠姐
Happy的楠姐 2020-12-05 10:36

In Rails 3.2.9 I have custom error pages defines like this:

# application.rb
config.exceptions_app = self.routes

# routes.rb
match \'/404\' => \'errors#n         


        
5条回答
  •  一整个雨季
    2020-12-05 10:54

    If you want to do it and don't want to change config/environments/test.rb, you can follow the solution from this post.

提交回复
热议问题