Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kevin Lozandier
Courses Plus Student 53,747 PointsCan there be clarification on the use of describe/it instead of feature/scenario declarations for integration tests throughout the Rails 4 ToDo Application?
Throughout the recent Rails 4 Todo Application, can it be clarified the use of describe/it for the feature specs instead of feature/scenario?
For some reason it strikes me as odd given my awareness of feature/scenario declarations being associated and specifically for feature specs according to*Obie*/
According to the Ruby on Rails legend Obie, from one of his books, he is known for stating the following on the matter:
Instead of using the describe method to group together related examples of behavior, we use
feature. To specify a scenario for a given feature, we use the scenario method with a description instead of
it.
While this isn't the first time I've seen feature specs not use feature/scenario, I thought I'd ask to sort it out once and all before I accidentally face the wrath of a ROR BDD pundit who's pedantic about things like this.
Any throughs from fellow Rails 4 Treehouse members, Andrew Chalkley, Jason Seifer, or anyone familiar with BDD I'd greatly appreciate.
1 Answer
Jason Seifer
Treehouse Guest TeacherHey Kevin Lozandier you won't be facing any wrath for using describe, context, and it instead of feature and scenario. It's best to go with whatever the team you're working with uses and be conscious of the different methodologies of testing.