diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-01 15:41:13 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-15 14:54:02 -0700 |
commit | ab1e3228f8c5a071eb7fb5f8b577eb706248fe9a (patch) | |
tree | 43e6d5ebe5941f1f2527022951cd9c0d95b6d7cf /actionpack/test | |
parent | 07f7f3a67c59292babe8b02baec5a7a7f5313421 (diff) | |
download | rails-ab1e3228f8c5a071eb7fb5f8b577eb706248fe9a.tar.gz rails-ab1e3228f8c5a071eb7fb5f8b577eb706248fe9a.tar.bz2 rails-ab1e3228f8c5a071eb7fb5f8b577eb706248fe9a.zip |
set `set` in the setup method
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index bd5b4e092f..9543787555 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -839,8 +839,11 @@ end class RouteSetTest < ActiveSupport::TestCase include RoutingTestHelpers - def set - @set ||= ROUTING::RouteSet.new + attr_reader :set + + def setup + super + @set = ROUTING::RouteSet.new end def request |