Merge pull request #3792 from consul/rubocop_find_by

Apply rubocop FindBy rules
This commit is contained in:
Javier Martín
2019-10-24 16:47:21 +02:00
committed by GitHub
29 changed files with 43 additions and 40 deletions

View File

@@ -25,7 +25,7 @@ describe "Admin custom pages" do
expect(SiteCustomization::Page.count).to be 7
slugs.each do |slug|
expect(SiteCustomization::Page.find_by_slug(slug).status).to eq "published"
expect(SiteCustomization::Page.find_by(slug: slug).status).to eq "published"
end
expect(all("[id^='site_customization_page_']").count).to be 7