Skip to content

Commit

Permalink
Fixed failing spec for disabling routes
Browse files Browse the repository at this point in the history
  • Loading branch information
harlow committed Oct 29, 2012
1 parent 545a401 commit c5d4c9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/routing/routes_spec.rb
Expand Up @@ -66,9 +66,13 @@
end end


context "with default configuration disabled" do context "with default configuration disabled" do
before do around do |example|
cached_high_voltage_routes = HighVoltage.routes
HighVoltage.routes = false HighVoltage.routes = false
Rails.application.reload_routes! Rails.application.reload_routes!
example.run
HighVoltage.routes = cached_high_voltage_routes
Rails.application.reload_routes!
end end


it "should not recognize routes" do it "should not recognize routes" do
Expand Down

0 comments on commit c5d4c9c

Please sign in to comment.