去除rspec should/expect警告 Posted on 2015-05-27 Edited on 2026-04-01 12345678910# /spec/spec_helpber.rbRSpec.configure do |config| config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.expect_with :rspec do |c| c.syntax = [:should, :expect] endend 资料How to remove RSpec old syntax deprecation warnings