spec/lib/engine_assets/extensions/rails/routes_spec.rb in engine-assets-0.3.0 vs spec/lib/engine_assets/extensions/rails/routes_spec.rb in engine-assets-0.3.1
- old
+ new
@@ -1,6 +1,6 @@
-require 'spec_helper'
+require 'spec/spec_helper'
describe ActionController::Routing::RouteSet do
describe "#load_routes!" do
class TestRouteSet < ActionController::Routing::RouteSet
attr_reader :configuration_files
@@ -20,9 +20,9 @@
@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/
+ routeset.configuration_files[0].should =~ /engine[-_ ]assets.*\/config\/routes\.rb/
end
end
end