mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
a4dd8719e5
Related with 5e7d6bb
14 lines
300 B
Ruby
14 lines
300 B
Ruby
require 'abstract_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
|
|
end
|