aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-11-04 09:38:01 +0000
committerAndrew White <andrew.white@unboxed.co>2016-11-04 09:38:01 +0000
commit9b103311d5d266fa509f5da8825ea5daecba1836 (patch)
treecce822e4496b50a6bd5b121a540447f59f59e3e4 /railties
parentcf3a0643a290fbf839dce3ba0ec1437591c52b65 (diff)
downloadrails-9b103311d5d266fa509f5da8825ea5daecba1836.tar.gz
rails-9b103311d5d266fa509f5da8825ea5daecba1836.tar.bz2
rails-9b103311d5d266fa509f5da8825ea5daecba1836.zip
Allow time for reloading to happen
Sometimes the modification time hasn't changed so the reloader doesn't pick up the changed files. This is especially true when booting the app and then modifying files.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/routing_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb
index 7d6033c54c..c0dba3ea3e 100644
--- a/railties/test/application/routing_test.rb
+++ b/railties/test/application/routing_test.rb
@@ -9,6 +9,8 @@ module ApplicationTests
def setup
build_app
boot_rails
+
+ sleep 1
end
def teardown
@@ -191,14 +193,14 @@ module ApplicationTests
get '/foo'
assert_equal 'bar', last_response.body
+ sleep 1
+
app_file 'config/routes.rb', <<-RUBY
AppTemplate::Application.routes.draw do
match 'foo', :to => 'foo#baz'
end
RUBY
- sleep 0.1
-
get '/foo'
assert_equal expected, last_response.body
end