title: How to run rspec test in different environment?
body: <p>I run my rspec tests in the test environment. But I have one test which has to use the development database. (I run a curl command with RestClient which creates an object in the database (table Photo)) I need to check is that object in the regular database.</p>
  
  <p>In my spec_helper, I have ENV["RAILS_ENV"] ||= 'test'</p>
  
  <p>I tried adding <strong>ENV["RAILS_ENV"] = 'development'</strong> in this single test, but it still says Uninitialized constant Photo.</p>
  
  <p>Any idea?</p>