You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncomment "gem 'therubyracer', platforms: :ruby" in the Gemfile.
Bundle update.
rails generate rspec:install
rails generate scaffold Widget name:string
rake db:migrate && rake db:test:prepare
bundle exec rspec spec [Only the controller test fails.]
Add "gem 'rails-controller-testing'" to the Gemfile.
Add the following to rails_helper.rb:
config.include Rails::Controller::Testing::TestProcess
config.include Rails::Controller::Testing::TemplateAssertions
config.include Rails::Controller::Testing::Integration
bundle update.
bundle exec rspec spec/views
View specs fails for named paths while invoking render with the following error:
After adding the rails-controller-testing gem, the View specs fail as the "render" method is no longer recognized.
Environment: Rails: Rails 5.0.0.beta1.1, Ruby: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
Steps to reproduce:
config.include Rails::Controller::Testing::TestProcess
config.include Rails::Controller::Testing::TemplateAssertions
config.include Rails::Controller::Testing::Integration
The text was updated successfully, but these errors were encountered: