Skip to content

Commit

Permalink
Merge pull request #2422 from rspec/switch-up-rspec-ci-version
Browse files Browse the repository at this point in the history
Set RSpec version from env
  • Loading branch information
JonRowe committed Dec 26, 2020
1 parent 25d13c9 commit e85c9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rspec-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Gem::Specification.new do |s|
# get released.
%w[core expectations mocks support].each do |name|
if ENV['RSPEC_CI']
s.add_runtime_dependency "rspec-#{name}", "= 4.0.0.pre"
s.add_runtime_dependency "rspec-#{name}", ENV.fetch('RSPEC_VERSION', '3.11.0.pre')
elsif RSpec::Rails::Version::STRING =~ /pre/ # prerelease builds
expected_rspec_version = "3.11.0.pre"
s.add_runtime_dependency "rspec-#{name}", "= #{expected_rspec_version}"
Expand Down

0 comments on commit e85c9d3

Please sign in to comment.