Skip to content

Commit

Permalink
Enable RSpec verifying doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 14, 2022
1 parent 15c6e4e commit 1ece6a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@

LSCSS_OUTPUT = File.read(File.expand_path("../data/lscss.txt", __FILE__))

# configure RSpec
RSpec.configure do |config|
config.mock_with :rspec do |c|
# https://relishapp.com/rspec/rspec-mocks/v/3-0/docs/verifying-doubles/partial-doubles
c.verify_partial_doubles = true
end
end

if ENV["COVERAGE"]
require "simplecov"
SimpleCov.start do
Expand Down

0 comments on commit 1ece6a7

Please sign in to comment.