diff options
author | Valentine Valyaeff <val@magazon.com.ua> | 2015-05-19 01:21:20 +0300 |
---|---|---|
committer | Valentine Valyaeff <val@magazon.com.ua> | 2015-05-19 01:21:20 +0300 |
commit | bad30ed46c64593f83ecccf10604c73667e12e2b (patch) | |
tree | 8278835a59fd9b5021c8647516f1885770c42af6 /actionpack/test/journey | |
parent | e3333697fcdd23292a4ec15c80f17abef0156fc8 (diff) | |
download | rails-bad30ed46c64593f83ecccf10604c73667e12e2b.tar.gz rails-bad30ed46c64593f83ecccf10604c73667e12e2b.tar.bz2 rails-bad30ed46c64593f83ecccf10604c73667e12e2b.zip |
ActionDispatch::Journey::Routes#empty? test cases
Diffstat (limited to 'actionpack/test/journey')
-rw-r--r-- | actionpack/test/journey/routes_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/journey/routes_test.rb b/actionpack/test/journey/routes_test.rb index b54d961f66..5e3b30dcfe 100644 --- a/actionpack/test/journey/routes_test.rb +++ b/actionpack/test/journey/routes_test.rb @@ -14,9 +14,11 @@ module ActionDispatch requirements = { :hello => /world/ } routes.add_route nil, path, requirements, {:id => nil}, {} + refute routes.empty? assert_equal 1, routes.length routes.clear + assert routes.empty? assert_equal 0, routes.length end |