Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
haffla committed Sep 18, 2022
1 parent 4b0543b commit 7f2287b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
require "yaml"
require "active_support/testing/time_helpers"

include ActiveSupport::Testing::TimeHelpers

dbconfig = YAML.safe_load(ERB.new(File.read(File.join("db", "config.yml"))).result, aliases: true)
ActiveRecord::Base.establish_connection(dbconfig["test"])
ActiveRecord::Base.logger = Logger.new($stdout, level: :warn)
Expand All @@ -37,6 +35,7 @@ class ProductCategory < ActiveRecord::Base
end

RSpec.configure do |config|
config.include ActiveSupport::Testing::TimeHelpers
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
Expand Down

0 comments on commit 7f2287b

Please sign in to comment.