spec/spec_helper.rb in couch_potato-0.5.4 vs spec/spec_helper.rb in couch_potato-0.5.5

- old
+ new

@@ -6,16 +6,10 @@ $:.unshift(File.dirname(__FILE__) + '/../lib') require 'couch_potato' -if ENV["RUN_CODE_RUN"] - CouchPotato::Config.database_name = 'http://langalex.couch.io/couch_potato_test' -else - CouchPotato::Config.database_name = 'couch_potato_test' -end - - +CouchPotato::Config.database_name = ENV['DATABASE'] || 'couch_potato_test' CouchPotato::Config.validation_framework = ENV['VALIDATION_FRAMEWORK'].to_sym unless ENV['VALIDATION_FRAMEWORK'].blank? # silence deprecation warnings from ActiveModel as the Spec uses Errors#on begin ActiveSupport::Deprecation.silenced = true