mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix warning : The implicit block expectation syntax is deprecated
This commit is contained in:
@@ -741,13 +741,9 @@ describe Enterprise do
|
||||
it "assigns permalink when initialized" do
|
||||
allow(Enterprise).to receive(:find_available_permalink).and_return("available_permalink")
|
||||
expect(Enterprise).to receive(:find_available_permalink).with("Name To Turn Into A Permalink")
|
||||
expect(
|
||||
lambda { enterprise.send(:initialize_permalink) }
|
||||
).to change{
|
||||
enterprise.permalink
|
||||
}.to(
|
||||
"available_permalink"
|
||||
)
|
||||
expect do
|
||||
enterprise.send(:initialize_permalink)
|
||||
end.to change { enterprise.permalink }.to("available_permalink")
|
||||
end
|
||||
|
||||
describe "finding a permalink" do
|
||||
|
||||
Reference in New Issue
Block a user