Files
openfoodnetwork/spec/features/admin/account_spec.rb
2015-09-17 22:38:10 +10:00

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