rspec / rspec-activemodel-mocks

Add stub_model and mock_model to rspec-mocks
MIT License
119 stars 32 forks source link

Fix use of deprecated 'stub' #27

Closed JasonBarnabe closed 1 year ago

JasonBarnabe commented 7 years ago

Fixes:

Using stub from rspec-mocks' old :should syntax without explicitly enabling the syntax is deprecated. Use the new :expect syntax or explicitly enable :should instead. Called from /Users/jason/rspec-activemodel-mocks/spec/rspec/active_model/mocks/mock_model_spec.rb:199:in `block (4 levels) in <top (required)>'.