0
我的测试似乎是相当直截了当:废弃警告rspec的3.3.3
describe MyModel do
describe 'validations' do
it { is_expected.to validate_presence_of(:relation_object) }
end
end
我得到这样的警告:
eprecation警告:
--------------------------------------------------------------------------------
Shoulda::Matchers::ActiveModel::ValidatePresenceOfMatcher implements a legacy RSpec matcher
protocol. For the current protocol you should expose the failure messages
via the `failure_message` and `failure_message_when_negated` methods.
我在做什么错?