gitlab-org--gitlab-foss/spec/frontend/fixtures/groups.rb

30 lines
649 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Groups (JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
let(:user) { create(:user) }
2019-02-21 11:54:28 -05:00
let(:group) { create(:group, name: 'frontend-fixtures-group', runners_token: 'runnerstoken:intabulasreferre')}
before(:all) do
clean_frontend_fixtures('groups/')
end
before do
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 }
expect(response).to be_successful
end
end
end