File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,10 @@ def inherited(base)
6666 end
6767 end
6868
69- attr_accessor :assets , :sandbox , :queue
69+ attr_accessor :assets , :sandbox
7070 alias_method :sandbox? , :sandbox
7171 attr_reader :reloaders
72+ attr_writer :queue
7273
7374 delegate :default_url_options , :default_url_options= , :to => :routes
7475
Original file line number Diff line number Diff line change @@ -24,12 +24,11 @@ def reload!
2424
2525 def updater
2626 @updater ||= begin
27- dirs = @external_routes . inject ( { } ) do |hash , dir |
28- hash . merge ( dir . to_s => [ "rb" ] )
27+ dirs = @external_routes . each_with_object ( { } ) do |dir , hash |
28+ hash [ dir . to_s ] = %w( rb )
2929 end
3030
3131 updater = ActiveSupport ::FileUpdateChecker . new ( paths , dirs ) { reload! }
32-
3332 updater . execute
3433 updater
3534 end
Original file line number Diff line number Diff line change @@ -249,9 +249,7 @@ def baz
249249 assert_equal 404 , last_response . status
250250 end
251251 end
252- end
253252
254- { "development" => "baz" , "production" => "bar" } . each do |mode , expected |
255253 test "reloads routes when configuration is changed in #{ mode } " do
256254 controller :foo , <<-RUBY
257255 class FooController < ApplicationController
Original file line number Diff line number Diff line change 1818# These files do not require any others and are needed
1919# to run the tests
2020require "#{ RAILS_FRAMEWORK_ROOT } /activesupport/lib/active_support/testing/isolation"
21- require "#{ RAILS_FRAMEWORK_ROOT } /activesupport/lib/active_support/testing/declarative"
2221require "#{ RAILS_FRAMEWORK_ROOT } /activesupport/lib/active_support/core_ext/kernel/reporting"
2322
2423module TestHelpers
@@ -268,7 +267,6 @@ class ActiveSupport::TestCase
268267 include TestHelpers ::Paths
269268 include TestHelpers ::Rack
270269 include TestHelpers ::Generation
271- extend ActiveSupport ::Testing ::Declarative
272270end
273271
274272# Create a scope and build a fixture rails app
You can’t perform that action at this time.
0 commit comments