summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/fixtures/groups.rb')
-rw-r--r--spec/frontend/fixtures/groups.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/fixtures/groups.rb b/spec/frontend/fixtures/groups.rb
index 9f0b2c73c93..42aad9f187e 100644
--- a/spec/frontend/fixtures/groups.rb
+++ b/spec/frontend/fixtures/groups.rb
@@ -5,20 +5,20 @@ require 'spec_helper'
RSpec.describe 'Groups (JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
- let(:admin) { create(:admin) }
+ let(:user) { create(:user) }
let(:group) { create(:group, name: 'frontend-fixtures-group', runners_token: 'runnerstoken:intabulasreferre')}
- render_views
-
before(:all) do
clean_frontend_fixtures('groups/')
end
before do
- group.add_maintainer(admin)
- sign_in(admin)
+ group.add_owner(user)
+ sign_in(user)
end
+ render_views
+
describe GroupsController, '(JavaScript fixtures)', type: :controller do
it 'groups/edit.html' do
get :edit, params: { id: group }