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 <main>'.
This commit is contained in:
parent
760a81383b
commit
6929cd908c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue