aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/unit/engine_test.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-04-28 15:05:49 -0700
committerPiotr Sarnacki <drogus@gmail.com>2012-04-28 15:05:49 -0700
commit1823d53d7bfa1625fb146c56e12a586aac7426fc (patch)
treef8a9caaa7d30806b32d7e154ae74aa04d1e37cae /railties/test/unit/engine_test.rb
parent5a2fdaa27796502daf0fb2314e599b76049296d4 (diff)
downloadrails-1823d53d7bfa1625fb146c56e12a586aac7426fc.tar.gz
rails-1823d53d7bfa1625fb146c56e12a586aac7426fc.tar.bz2
rails-1823d53d7bfa1625fb146c56e12a586aac7426fc.zip
Don't create new directory for tests
Diffstat (limited to 'railties/test/unit/engine_test.rb')
-rw-r--r--railties/test/unit/engine_test.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/railties/test/unit/engine_test.rb b/railties/test/unit/engine_test.rb
deleted file mode 100644
index 02d40d97f6..0000000000
--- a/railties/test/unit/engine_test.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'abstract_unit'
-
-module Unit
- class EngineTest < ActiveSupport::TestCase
- it "reports routes as available only if they're actually present" do
- engine = Class.new(Rails::Engine) do
- def initialize(*args)
- @routes = nil
- super
- end
- end
-
- assert !engine.routes?
- end
-
- it "does not add more paths to routes on each call" do
- engine = Class.new(Rails::Engine)
-
- engine.routes
- length = engine.routes.draw_paths.length
-
- engine.routes
- assert_equal length, engine.routes.draw_paths.length
- end
- end
-end