Sha256: 3a34bfe677f12dd2e412458829ad8159b1119ee39b3b16beaaf4eb207bfc2fc3
Contents?: true
Size: 489 Bytes
Versions: 18
Compression:
Stored size: 489 Bytes
Contents
require 'rails_helper' describe 'Users::AccountsController' do let(:account) { ActsAsTenant.current_tenant } let(:user) { create :user } before do sign_in user end it 'shows the owned account' do get "/u/cuentas/#{account.to_param}" expect(response).to have_http_status(:ok) end it 'denies foreign account' do other_account = create :account get "/u/cuentas/#{other_account.to_param}" expect(response).to have_http_status(:unauthorized) end end
Version data entries
18 entries across 18 versions & 1 rubygems