mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
22 lines
439 B
Ruby
22 lines
439 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'Account Page' do
|
|
include AuthenticationWorkflow
|
|
|
|
describe "updating" do
|
|
let!(:user) { create(:user) }
|
|
let!(:enterprise) { create(:distributor_enterprise, owner: user) }
|
|
|
|
before do
|
|
quick_login_as user
|
|
end
|
|
|
|
context "as an enterprise user" do
|
|
it "loads the page" do
|
|
visit admin_account_path
|
|
expect(page).to have_content "Account"
|
|
end
|
|
end
|
|
end
|
|
end
|