Sha256: 3daee16789b2a0e8ab331c6a160be320d4b62b56c10472438f540b9b4c3faf9b
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
require 'spec/spec_helper' describe ActionController::Routing::RouteSet do describe "#load_routes!" do class TestRouteSet < ActionController::Routing::RouteSet attr_reader :configuration_files def initialize @configuration_files = [] end def add_configuration_file(routes) configuration_files << routes end end attr_reader :routeset before do @routeset = TestRouteSet.new end it "adds the engine-assets routes configuration" do routeset.load_routes! routeset.configuration_files[0].should =~ /engine[-_ ]assets.*\/config\/routes\.rb/ end end end
Version data entries
3 entries across 3 versions & 1 rubygems