mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Move tests around
This commit is contained in:
parent
14a7559aeb
commit
52b56957bc
2 changed files with 6 additions and 4 deletions
|
|
@ -8,9 +8,11 @@ RSpec.describe AreaVisitsCalculationSchedulingJob, type: :job do
|
|||
let(:user) { create(:user) }
|
||||
|
||||
it 'calls the AreaVisitsCalculationService' do
|
||||
Sidekiq::Testing.inline! do
|
||||
expect(AreaVisitsCalculatingJob).to receive(:perform_later).with(user.id).and_call_original
|
||||
|
||||
described_class.new.perform
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ RSpec.describe '/settings/users', type: :request do
|
|||
context 'when user is an admin' do
|
||||
let!(:admin) { create(:user, :admin) }
|
||||
|
||||
describe 'POST /create' do
|
||||
before { sign_in admin }
|
||||
|
||||
describe 'POST /create' do
|
||||
context 'with valid parameters' do
|
||||
it 'creates a new User' do
|
||||
expect do
|
||||
|
|
|
|||
Loading…
Reference in a new issue