In Rspec: logging failed when run many test using Rsepc but success when just run the specific one


0 votes
asked Mar 15, 2016 by Ottaway (710 points)
When I just run specific one that need to login,the test passes, but when I type in rake spec ,the test that needed login fails.

4 Answers

–1 vote
answered Jun 1, 2016 by gbthe (940 points)
 
Best answer
I have used this line with some success in the controller
Found this years ago on Selenium 1 (Selenium RC) Selenium Documentation
commented Jun 3, 2016 by FunesStru (210 points)
Thanks Aurelien and Kang Kyu
commented Jun 3, 2016 by because (200 points)
Upload your code to server and try
0 votes
answered Apr 24, 2016 by closing (1,450 points)

It only breaks when you run the tests.
Sorry about clogging up your question.
Symbols are really handy in many ways when working with rails.
Then there is request to https://teamtreehouse.com/community/rails-41-tests-return-undefined-method-authenticate-for-nilnilclass with full headers etc
0 votes
answered May 16, 2016 by LbhDoYou (520 points)
Refer my existing answer here What is subject.invoke in rspec? - codegur.com
This seems to work for me
0 votes
answered Jun 1, 2016 by gur58 (390 points)

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...