diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-11 02:52:25 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-28 01:20:18 +0300 |
commit | aeb9db6753cfdd56f82d80c0e2c01f63d65b705d (patch) | |
tree | 07dd8fea47384355ae52e6943bd15267b4765ee3 /spec/models | |
parent | ac66268443b05029cbc45cc358f62b764f1ff165 (diff) |
Present group and dashboard MR list without grouping by project
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/issue_spec.rb | 8 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 623238e9d86..bba9058f394 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -34,11 +34,11 @@ describe Issue, models: true do end end - context 'when full_path is true' do + context 'when full is true' do it 'returns complete path to the issue' do - expect(issue.to_reference(full_path: true)).to eq 'sample-namespace/sample-project#1' - expect(issue.to_reference(project, full_path: true)).to eq 'sample-namespace/sample-project#1' - expect(issue.to_reference(group, full_path: true)).to eq 'sample-namespace/sample-project#1' + expect(issue.to_reference(full: true)).to eq 'sample-namespace/sample-project#1' + expect(issue.to_reference(project, full: true)).to eq 'sample-namespace/sample-project#1' + expect(issue.to_reference(group, full: true)).to eq 'sample-namespace/sample-project#1' end end diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 7d61c26a6e9..527eb704036 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -293,11 +293,11 @@ describe Project, models: true do end end - context 'when full_path is true' do + context 'when full is true' do it 'returns complete path to the project' do - expect(project.to_reference(full_path: true)).to eq 'sample-namespace/sample-project' - expect(project.to_reference(project, full_path: true)).to eq 'sample-namespace/sample-project' - expect(project.to_reference(group, full_path: true)).to eq 'sample-namespace/sample-project' + expect(project.to_reference(full: true)).to eq 'sample-namespace/sample-project' + expect(project.to_reference(project, full: true)).to eq 'sample-namespace/sample-project' + expect(project.to_reference(group, full: true)).to eq 'sample-namespace/sample-project' end end |