1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/engine_test.rb

15 lines
302 B
Ruby
Raw Normal View History

2012-04-28 18:05:49 -04:00
require 'abstract_unit'
class EngineTest < ActiveSupport::TestCase
test "reports routes as available only if they're actually present" do
2012-04-28 18:05:49 -04:00
engine = Class.new(Rails::Engine) do
def initialize(*args)
@routes = nil
super
end
end
assert !engine.routes?
end
end