spec/spec_helper.rb in json_parser-1.2.0 vs spec/spec_helper.rb in json_parser-1.3.0

- old
+ new

@@ -1,17 +1,13 @@ require 'simplecov' -SimpleCov.start +SimpleCov.start do + add_filter 'spec/support/models/' +end require 'pry-nav' require 'json_parser' require 'safe_attribute_assignment' -module JsonParser - models = File.expand_path("spec/support/models/*.rb") - Dir[models].each do |file| - autoload file.gsub(/.*\/(.*)\..*/, '\1').camelize.to_sym, file - end -end support_files = File.expand_path("spec/support/**/*.rb") Dir[support_files].each { |file| require file } RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true