Skip to content

Commit 05ad14b

Browse files
committed
Engines do not seem fully supported on Rails 3.0
1 parent 5e218bc commit 05ad14b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

features/routing_specs/engine_routes.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Feature: engine routes
33
Routing specs can specify the routeset that will be used for the example
44
group. This is most useful when testing Rails engines.
55

6+
@unsupported-on-rails-3-0
67
Scenario: specify engine route
78
Given a file named "spec/routing/engine_routes_spec.rb" with:
89
"""ruby

features/support/rails_versions.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Around "@unsupported-on-rails-3-0" do |scenario, block|
2+
require 'rails'
3+
scenario.skip_invoke! if Rails.version >= '3.0.0' && Rails.version < '3.1.0'
4+
end

0 commit comments

Comments
 (0)