mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Use without_partial_double_verification instead verify_partial_doubles = false
This commit is contained in:
parent
6cda021d71
commit
6cacf59467
8 changed files with 35 additions and 22 deletions
|
@ -6,17 +6,7 @@ if ENV['TRAVIS']
|
|||
SimpleCov.start
|
||||
end
|
||||
|
||||
|
||||
RSpec.configure do |config|
|
||||
# https://github.com/rspec/rspec-rails/issues/1076
|
||||
config.around :each, type: :view do |example|
|
||||
config.mock_with :rspec do |mocks|
|
||||
mocks.verify_partial_doubles = false
|
||||
example.run
|
||||
mocks.verify_partial_doubles = true
|
||||
end
|
||||
end
|
||||
|
||||
# rspec-expectations config goes here. You can use an alternate
|
||||
# assertion/expectation library such as wrong or the stdlib/minitest
|
||||
# assertions if you prefer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue