Skip to content

Commit

Permalink
Update site_admin_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster authored Mar 25, 2024
1 parent 4a9588a commit cdd0077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/site_admin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

let(:user) { site_admin.user }

describe 'when the user is not a site admin' do
describe 'when the user is already a site admin' do
it { is_expected.to accept_values_for(:user, user) }
it { is_expected.not_to accept_values_for(:user, nil) }
end

context 'when the user is already a site admin' do
context 'when the user is not a site admin, to become one it must create a mew site admin row' do
let(:site_admin2) { create(:site_admin, user:) }

it 'is not able to save' do
Expand Down

0 comments on commit cdd0077

Please sign in to comment.