Commit b1f581c3 authored by Robert Speicher's avatar Robert Speicher

Scope group creation to the specs that actually require it

Only one context tested group behavior, but we were performing group and
membership creation on every example unnecessarily.
parent ba3449a7
...@@ -3,8 +3,7 @@ require 'spec_helper' ...@@ -3,8 +3,7 @@ require 'spec_helper'
describe 'Filter issues', js: true do describe 'Filter issues', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:group) { create(:group) } let!(:project) { create(:project) }
let!(:project) { create(:project, group: group) }
let!(:user) { create(:user, username: 'joe', name: 'Joe') } let!(:user) { create(:user, username: 'joe', name: 'Joe') }
let!(:user2) { create(:user, username: 'jane') } let!(:user2) { create(:user, username: 'jane') }
let!(:label) { create(:label, project: project) } let!(:label) { create(:label, project: project) }
...@@ -39,8 +38,6 @@ describe 'Filter issues', js: true do ...@@ -39,8 +38,6 @@ describe 'Filter issues', js: true do
before do before do
project.team << [user, :master] project.team << [user, :master]
project.team << [user2, :master] project.team << [user2, :master]
group.add_developer(user)
group.add_developer(user2)
sign_in(user) sign_in(user)
...@@ -538,6 +535,13 @@ describe 'Filter issues', js: true do ...@@ -538,6 +535,13 @@ describe 'Filter issues', js: true do
end end
describe 'RSS feeds' do describe 'RSS feeds' do
let(:group) { create(:group) }
let(:project) { create(:project, group: group) }
before do
group.add_developer(user)
end
it 'updates atom feed link for project issues' do it 'updates atom feed link for project issues' do
visit project_issues_path(project, milestone_title: milestone.title, assignee_id: user.id) visit project_issues_path(project, milestone_title: milestone.title, assignee_id: user.id)
link = find_link('Subscribe') link = find_link('Subscribe')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment