ruby - Rails Gemfile Clarification -


so despite fact i've created 3 rails apps of increasing complexity on own. haven't deployed of them. decided tonight create app (well redoing older app new things i've learned) , hit me.

i don't understand gemfile, second guess myself quite bit. seems obvious , straightforward, yet here on stackoverflow asking clarification or @ least ease second guessing.

my understanding of gemfile follows.

default gems gems persist across environments (test, dev, , production), test gems live in test environment, dev gems in development environment, , production gems in production environment.

up point i've kinda been throwing of gems in default, want correct before make habit. using rails' built in testing (i know, boo, hiss) , use minitest reporters, guard minitest , minit backtrace helpers. i'm told best practice put them , gem related testing in obvious test environment. don't think i've ever setup test db, less used test environment. why wouldn't go under development environment? or when run tests that's using test environment if didn't explicitly create one?

is when run tests that's using test environment if didn't explicitly create one?

$ rails console test brings test environment


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -