Last active
December 14, 2015 17:58
-
-
Save matiasleidemer/5125467 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usando @user= dentro de um before(:each) | |
rspec spec/models/user_spec.rb | |
......................................................... | |
Finished in 46.62 seconds | |
57 examples, 0 failures | |
Randomized with seed 60306 | |
# usando subject do e removendo o @user= | |
# falha no teste nao é representativo neste caso | |
rspec spec/models/user_spec.rb | |
......F.................................................. | |
Finished in 40.04 seconds | |
57 examples, 1 failure | |
Randomized with seed 36010 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment