Fix order-dependent specs

This commit is contained in:
Sebastian Serth
2021-11-04 18:34:44 +01:00
parent d033f71ae3
commit 7f47af99cb
6 changed files with 13 additions and 4 deletions

View File

@ -3,6 +3,8 @@
require 'rails_helper'
describe 'Authorization' do
before { allow(Runner.strategy_class).to receive(:available_images).and_return([]) }
context 'when being an admin' do
let(:user) { FactoryBot.create(:admin) }