I am having a problem writing one of my first tests. I am using capybara to test an add form. A select on the form is populated from existing db records associated records of the current_user defined in controller. I posted my problem originally on stack overflow but have not had any responses. I thought I would ask here and see if anyone can point me in the right direction: http://stackoverflow.com/questions/26264496/rails-4-integration-testing-capybara-and-devise-current-user
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
i can not get current_user while writing test case with Rspec and Capybara | 0 | 308 | April 6, 2012 | |
Test/Unit integration test w Capybara - how to manually set data in the test | 3 | 277 | December 13, 2010 | |
Rspec Testing issues -- Beginner Coder and not sure where to start in troubleshooting this. | 3 | 271 | March 24, 2015 | |
Login user UserSession.create for rspec not working | 0 | 151 | February 13, 2011 | |
Using @current_user in tests | 1 | 241 | March 28, 2012 |