Skip to content

Commit f45642e

Browse files
committed
Choose cuke tags based on correct RAILS_VERSION
1 parent a57e8ae commit f45642e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RSpec::Core::RakeTask.new(:spec) do |t|
2727
end
2828

2929
Cucumber::Rake::Task.new(:cucumber) do |t|
30-
version = ENV.fetch("RAILS_VERSION", "~> 4.2.0")
30+
version = ENV.fetch("RAILS_VERSION", "~> 4.2.0")[/\d[\.-]\d/]
3131
tags = []
3232

3333
if version.to_f >= 5.1

0 commit comments

Comments
 (0)