Skip to content

Commit

Permalink
Add exception for rspec ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 17, 2020
1 parent f057558 commit 934276b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rspec-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Gem::Specification.new do |s|
# that we want. These will need to change from time to time as new RSpecs
# get released.
%w[core expectations mocks support].each do |name|
if RSpec::Rails::Version::STRING =~ /pre/ # prerelease builds
if ENV['RSPEC_CI']
s.add_runtime_dependency "rspec-#{name}", "= 4.0.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}"
else
Expand Down

0 comments on commit 934276b

Please sign in to comment.