Fix rubocop issues in feature specs related to configuration

This commit is contained in:
luisramos0
2019-09-17 18:56:55 +01:00
parent b712ec7f13
commit c5a17bcde0
3 changed files with 5 additions and 5 deletions

View File

@@ -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)

View File

@@ -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")

View File

@@ -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