mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
This feels safer because we don't risk messing up with any instance's operations while still moving us towards removing this page.
23 lines
594 B
Ruby
23 lines
594 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe "Mail Methods" do
|
|
include AuthenticationHelper
|
|
|
|
before { login_as_admin_and_visit spree.edit_admin_general_settings_path }
|
|
|
|
context "edit" do
|
|
before { click_link "Mail Method Settings" }
|
|
|
|
it "only allows changing the mails_from setting" do
|
|
fill_in 'mails_from', with: 'ofn@example.com'
|
|
fill_in 'mail_bcc', with: 'bcc@example.com'
|
|
expect(page).to have_field('intercept_email', disabled: true)
|
|
|
|
click_button 'Update'
|
|
expect(page).to have_content('successfully updated!')
|
|
end
|
|
end
|
|
end
|