How can I determine if my rails is in the development environment and not the test environment?
It looks like you're calling it correctly. Perhaps the problem is that the environment is named differently somewhere. Try in the console:
> Rails.env=> "development"> Rails.env.development?=> true> Rails.env.test?=> false
...to confirm that the environment is what you think it is.