mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fix rubocop issues in feature specs related to configuration
This commit is contained in:
@@ -20,7 +20,7 @@ describe "General Settings" do
|
||||
|
||||
context "editing general settings (admin)" do
|
||||
it "should be able to update the site name" do
|
||||
fill_in "site_name", :with => "Spree Demo Site99"
|
||||
fill_in "site_name", with: "Spree Demo Site99"
|
||||
click_button "Update"
|
||||
|
||||
assert_successful_update_message(:general_settings)
|
||||
|
||||
@@ -12,9 +12,9 @@ describe "image settings" do
|
||||
|
||||
# Regression test for #2344
|
||||
it "can update attachment_url" do
|
||||
fill_in "Attachments URL", :with => "foobar"
|
||||
fill_in "Attachments Default URL", :with => "barfoo"
|
||||
fill_in "Attachments Path", :with => "spec/dummy/tmp/bfaoro"
|
||||
fill_in "Attachments URL", with: "foobar"
|
||||
fill_in "Attachments Default URL", with: "barfoo"
|
||||
fill_in "Attachments Path", with: "spec/dummy/tmp/bfaoro"
|
||||
click_button "Update"
|
||||
|
||||
expect(Spree::Config[:attachment_url]).to eq("foobar")
|
||||
|
||||
@@ -15,7 +15,7 @@ describe "Mail Methods" do
|
||||
end
|
||||
|
||||
it "should be able to edit mail method settings" do
|
||||
fill_in "mail_bcc", :with => "spree@example.com99"
|
||||
fill_in "mail_bcc", with: "spree@example.com99"
|
||||
click_button "Update"
|
||||
expect(page).to have_content("successfully updated!")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user