Add role-specific user fabricators (#33437)
This commit is contained in:
1 parent
a8a16695f1
commit
7cbdcd7b3f
105 files changed
+125
-113
No files matched your search
@@ -6,7 +6,7 @@ RSpec.describe 'finding software updates through the admin interface' do
|
||||
before do
|
||||
Fabricate(:software_update, version: '99.99.99', type: 'major', urgent: true, release_notes: 'https://github.com/mastodon/mastodon/releases/v99')
|
||||
|
||||
sign_in Fabricate(:user, role: UserRole.find_by(name: 'Owner')), scope: :user
|
||||
sign_in Fabricate(:owner_user), scope: :user
|
||||
end
|
||||
|
||||
it 'shows a link to the software updates page, which links to release notes' do
|
||||
|
||||
Reference in new issue
Block a user