Skip to content

Commit 65ac605

Browse files
committed
Handle versions like 5-0-stable (hyphen, not dot)
1 parent 6a07256 commit 65ac605

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")[/\d\.\d/]
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)