spec/spec_helper.rb in couch_potato-1.7.1 vs spec/spec_helper.rb in couch_potato-1.9.0

- old
+ new

@@ -1,21 +1,23 @@ +# frozen_string_literal: true + require 'rubygems' require 'rspec' require 'time' require 'active_support' require 'timecop' -$:.unshift(File.dirname(__FILE__) + '/../lib') +$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') require 'couch_potato' CouchPotato::Config.database_name = ENV['DATABASE'] || 'couch_potato_test' # silence deprecation warnings from ActiveModel as the Spec uses Errors#on begin ActiveSupport::Deprecation.silenced = true -rescue +rescue StandardError # ignore errors, ActiveSupport is probably not installed end class Child include CouchPotato::Persistence @@ -62,7 +64,6 @@ end def strip_indentation(string) string.gsub(/^\s+/m, '') end - end