Created
January 5, 2015 21:41
-
-
Save paulghaddad/693c3fa016fed563fcab to your computer and use it in GitHub Desktop.
LevelUp 4: Knows the location and conventions for Rspec and Cucumber
This file contains hidden or 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
Exercise: Knows the location and conventions for Rspec and Cucumber | |
3. Explain the usage of integration versus unit tests in your Rails app. | |
Integration tests in a Rails app will test the functionality of an entire Feature. This will normally test the entire response cycle--from the initial request, to the controller, models, views and then the response returned to the browser. Unit tests, in contrast, focus on testing one method or interaction in one particular class in the app. This could be a model, helper, controller or view. They are much more focused than integration tests. | |
4. There is a default command that is used in normal Rails codebases to run all tests. What is it? | |
"rake" will run all tests | |
"rake spec" will run all tests in the spec directory | |
"rake cucumber" will run all Cucumber features |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment