Skip to content

Commit e2df4c9

Browse files
committed
Locked rspec-rails to 3.x in the .gemspec
(Since Gemfile.lock isn't currently under version control, and probably can't be since RAILS_VERSION is dynamic.) Without this, it will install the latest version, 4.0, which uses &. not available in older Rubies, causing errors like this: ruby/2.1.0/gems/rspec-rails-4.0.0/lib/rspec/rails/example/mailer_example_group.rb:25: syntax error, unexpected '.' options&.each { |key, value| default_u...
1 parent 61ae8c4 commit e2df4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xray-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
1616

1717
gem.add_dependency 'rails', '>= 3.1.0'
1818

19-
gem.add_development_dependency 'rspec-rails'
19+
gem.add_development_dependency 'rspec-rails', '~> 3.8'
2020

2121
# Required for the dummy Rails app in spec/dummy
2222
gem.add_development_dependency 'sqlite3'

0 commit comments

Comments
 (0)