spec/spec_helper.rb in active_remote-2.2.0 vs spec/spec_helper.rb in active_remote-2.3.0
- old
+ new
@@ -15,6 +15,15 @@
require 'support/protobuf'
require 'support/models'
RSpec.configure do |config|
config.include Protobuf::RSpec::Helpers
+
+ # Turn deprecation warnings into errors with full backtrace.
+ config.raise_errors_for_deprecations!
+
+ # Verifies the existance of any stubbed methods, replaces better_receive and better_stub
+ # https://www.relishapp.com/rspec/rspec-mocks/v/3-1/docs/verifying-doubles/partial-doubles
+ config.mock_with :rspec do |mocks|
+ mocks.verify_partial_doubles = true
+ end
end