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

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Relationships

Sidney Eubanks
Sidney Eubanks
3,864 Points

Why does he put the should-matchers gem inside of the test group?

Can you put that gem anywhere? or should gems be put in specific places? I am mostly asking for future use. Like if I see a gem on Git that I want to use, if I were to install it that way (instead of in the terminal) what is the general rule of thumb for where to put the gem in the gem file? Thanks

1 Answer

Hello,

From what I have read, the common approach is to alphabetize your gems relative to the group that gem is in.

Sorry, I forgot about the title question. The shuld-matchers gem is placed in the test group because it is only being used while testing and not for development or production.