aboutsummaryrefslogblamecommitdiffstats
path: root/railties/test/engine_test.rb
blob: addf49cdb6104e59acaa9d5b116828227813a43a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                      
   
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