spec/spec_helper.rb in europeana-blacklight-1.2.2 vs spec/spec_helper.rb in europeana-blacklight-1.3.0
- old
+ new
@@ -1,11 +1,13 @@
+# frozen_string_literal: true
+
ENV['RAILS_ENV'] ||= 'test'
# Generate Simplecov report
require 'simplecov'
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'
require 'webmock/rspec'
require 'europeana/api'