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.
我在做什麼錯?