-
Notifications
You must be signed in to change notification settings - Fork 229
Problems with using Capybara #51
Comments
Hi, glad you liked the book! Try adding the following near the top of your rails_helper.rb file:
|
Hello, Aaron. I still get a “NoMethodError: undefined method for ‘sign_in’” error for the User Management feature spec. Cameron. From: Aaron Sumner [mailto:[email protected]] Hi, glad you liked the book! Try adding the following near the top of your rails_helper.rb file: require 'capybara/rails' — |
I don't see the following in rails_helper.rb: Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
RSpec.configure do |config|
# other RSpec configuration omitted ...
config.include LoginMacros
end This is covered in chapter 7. RSpec needs to know where to load any support files. |
Ah! Okay. I did skip that chapter because I wanted to jump into Capybara. Cameron. From: Aaron Sumner [mailto:[email protected]] I don't see the following in rails_helper.rb: Dir[Rails.root.join("spec/support/*/.rb")].each {|f| require f} RSpec.configure do |config| other RSpec configuration omitted ...config.include LoginMacros end This is covered in chapter 7. RSpec needs to know where to load any support files. — |
Hello.
First I want to say "Thank you!!!" for creating this book!!! I will recommend this book for the Thinkful.com training site. I'm having problems with the Capybara testing. Rspec doesn't like when I type 'visit root_path'. When I create the Module, it still doesn't like the login aspect.
my github is https://github.com/vdogamer/rpsec1
(forgive my misspelling)
The text was updated successfully, but these errors were encountered: