From 6929cd908cf2e01c3d1fd0d8da59f0ee8e4d932a Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Thu, 13 Jan 2022 00:33:42 -0500 Subject: [PATCH] Moving from 'should' syntax to 'expect' (#16084) In Travis I found the following message: > Using `should` from rspec-expectations' old `:should` syntax without > explicitly enabling the syntax is deprecated. Use the new `:expect` > syntax or explicitly enable `:should` with > `config.expect_with(:rspec) > { |c| c.syntax = :should }` > instead. Called from > /home/travis/build/forem/forem/spec/models/html_variant_spec.rb:76:in > `block (2 levels) in
'. --- spec/models/html_variant_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/html_variant_spec.rb b/spec/models/html_variant_spec.rb index 3178a395e..2378e5f7d 100644 --- a/spec/models/html_variant_spec.rb +++ b/spec/models/html_variant_spec.rb @@ -73,6 +73,6 @@ RSpec.describe HtmlVariant, type: :model do it "strips whitespace from the name" do variant = create(:html_variant, name: " hello world ") - variant.reload.name.should eq "hello world" + expect(variant.reload.name).to eq "hello world" end end