spec/spec_helper.rb in europeana-feedback-button-0.0.5 vs spec/spec_helper.rb in europeana-feedback-button-0.0.6

- old
+ new

@@ -1,14 +1,15 @@ # frozen_string_literal: true + ENV['RAILS_ENV'] ||= 'test' require 'simplecov' # Generate Simplecov report SimpleCov.start -require File.expand_path('../dummy/config/environment.rb', __FILE__) +require File.expand_path('dummy/config/environment.rb', __dir__) require 'rspec/rails' require 'shoulda/matchers' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. @@ -19,7 +20,16 @@ config.order = 'random' config.expect_with :rspec do |c| c.syntax = :expect + end +end + +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + + with.library :active_model + with.library :action_controller end end