Skip to content

Instantly share code, notes, and snippets.

@matthewrudy
Last active March 25, 2019 16:10
Show Gist options
  • Save matthewrudy/8d3b86a99715f838e7d74a7829c890a3 to your computer and use it in GitHub Desktop.
Save matthewrudy/8d3b86a99715f838e7d74a7829c890a3 to your computer and use it in GitHub Desktop.
Changes required to make rspec-rails work with Rails 6
# this is what the errors looked like before
ActionView::Template::Error:
wrong number of arguments (given 2, expected 1)
gem 'pry'
- gem 'rspec-rails'
+ gem 'rspec-rails', github: 'rspec/rspec-rails', branch: '4-0-dev'
+
+ # need to specify these explicitly
+ gem 'rspec-core', github: 'rspec/rspec-core'
+ gem 'rspec-expectations', github: 'rspec/rspec-expectations'
+ gem 'rspec-mocks', github: 'rspec/rspec-mocks'
+ gem 'rspec-support', github: 'rspec/rspec-support'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment