Skip to content

Commit 384001b

Browse files
committed
Reliably skip cucumber features only on Rails 3.0
1 parent 07422ea commit 384001b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/support/rails_versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Around "@unsupported-on-rails-3-0" do |scenario, block|
22
require 'rails'
3-
scenario.skip_invoke! if ::Rails.version.to_s.start_with?("3.0")
3+
block.call unless ::Rails.version.to_s.start_with?("3.0")
44
end

0 commit comments

Comments
 (0)