spec/spec_helper.rb in light-service-ext-0.1.2 vs spec/spec_helper.rb in light-service-ext-0.1.3

- old
+ new

@@ -3,9 +3,22 @@ require File.join(__dir__, "..", 'dev', 'setup') require Pathname.new(__dir__).realpath.join('coverage_helper').to_s require 'light-service/testing' +unless defined? Rails + module Rails + end +end + +unless defined? Rails::ActiveRecordError + module Rails + class ActiveRecordError < StandardError + def model; end + end + end +end + RSpec.configure do |config| config.before do # rubocop:disable Style/ClassVars LightServiceExt.class_variable_set(:@@configuration, LightServiceExt::Configuration.new) # rubocop:enable Style/ClassVars