Permalink
Browse files

Move the "drawing of the routes" for the EngineExample to engine_exam…

…ple.rb
  • Loading branch information...
1 parent 454364b commit 34cbadc21780f00bcdd806dbf112fc17513970bb @justinko justinko committed Jun 23, 2012
Showing with 7 additions and 7 deletions.
  1. +0 −7 spec/spec_helper.rb
  2. +7 −0 spec/support/engine_example.rb
View
@@ -16,13 +16,6 @@ def self.run_all(reporter=nil)
end
end
-if RSpec::Rails.at_least_rails_3_1?
- RSpec::EngineExample.routes.draw do
- root :to => "foo#index"
- resources :bars
- end
-end
-
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus
@@ -3,4 +3,11 @@ class EngineExample < ::Rails::Engine
def self.activate
end
end
+
+ if RSpec::Rails.at_least_rails_3_1?
+ EngineExample.routes.draw do
+ root :to => "foo#index"
+ resources :bars
+ end
+ end
end

0 comments on commit 34cbadc

Please sign in to comment.