]> git.openstreetmap.org Git - rails.git/commit
Refactor site controller tests to inherit from ActionDispatch::IntegrationTest
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Apr 2020 09:02:41 +0000 (11:02 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Apr 2020 09:09:13 +0000 (11:09 +0200)
commit1aa5a54419d1112b246fa5d967f0ae3ffdcadf2b
tree9d876c46beb1d9728b5567125306a1d9f44fc857
parent5df434271e2c55b011d310db4f003a06feea5306
Refactor site controller tests to inherit from ActionDispatch::IntegrationTest

This is the modern way of writing controller tests, since it uses the
rails middleware (among other things) and leads to more realistic tests.

Refs #2563
config/routes.rb
test/controllers/site_controller_test.rb
test/test_helper.rb