spec/railtie_spec.rb in couch_potato-0.5.4 vs spec/railtie_spec.rb in couch_potato-0.5.5
- old
+ new
@@ -1,11 +1,13 @@
require 'spec_helper'
require 'yaml'
require 'spec/mocks'
-RAILS_ENV = 'test'
module Rails
+ def self.env
+ 'test'
+ end
class Railtie
def self.initializer(*args)
end
end
@@ -58,6 +60,6 @@
CouchPotato::Config.should_receive(:database_name=).with('db')
CouchPotato.rails_init
end
-end
\ No newline at end of file
+end