diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-26 11:32:21 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-26 12:23:29 +0100 |
commit | 480fcb5533e59151a6e9ae11baef59ebab64cc6c (patch) | |
tree | 2c5684dc86ad8ba1a4d96c014843e83cc6492e93 /spec/controllers/groups | |
parent | 45e5d12122ac04d7558c84e47003fc8c85a9dddd (diff) | |
download | gitlab-ce-480fcb5533e59151a6e9ae11baef59ebab64cc6c.tar.gz |
Added controller specs
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/milestones_controller_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/groups/milestones_controller_spec.rb b/spec/controllers/groups/milestones_controller_spec.rb index 6e4b5f78e33..7cf2996ffd0 100644 --- a/spec/controllers/groups/milestones_controller_spec.rb +++ b/spec/controllers/groups/milestones_controller_spec.rb @@ -6,6 +6,16 @@ describe Groups::MilestonesController do let(:project2) { create(:empty_project, group: group) } let(:user) { create(:user) } let(:title) { '肯定不是中文的问题' } + let(:milestone) do + project_milestone = create(:milestone, project: project) + + GroupMilestone.build( + group, + [project], + project_milestone.title + ) + end + let(:milestone_path) { group_milestone_path(group, milestone.safe_title, title: milestone.title) } before do sign_in(user) @@ -14,6 +24,8 @@ describe Groups::MilestonesController do controller.instance_variable_set(:@group, group) end + it_behaves_like 'milestone tabs' + describe "#create" do it "creates group milestone with Chinese title" do post :create, |