I'm using VCR to speed up my tests in my rails app and it works like a charm in the test environments
But when I physically navigate the site in the developement environment I get the error uninitialised constant VCR when ever I get to a
VCR.use_cassette("name") do
# http request
end
I can resolve the issue by requiring VCR in my config/application.rb
require 'vcr'
But this does not feel like the correct solution...
Will this not force the app to use cassette's in all my RAILS_ENV's?
I only want to use my VCR cassettes in my test environments not in any of the other environments my app gets run in.
What is the best solution for this?