diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-12-14 19:39:53 -0200 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-12-27 19:25:17 -0200 |
commit | 1b082a4c338d7575e15d7450906801db59873441 (patch) | |
tree | 1b5081ce55b63436082b038f499a8c54172fc75a /spec/support/services/issuable_create_service_slash_commands_shared_examples.rb | |
parent | 77deeb12f74b857f9356168ccdf92612fc85fe84 (diff) | |
download | gitlab-ce-1b082a4c338d7575e15d7450906801db59873441.tar.gz |
Check if user can read issue before being assignedissue_22664
Diffstat (limited to 'spec/support/services/issuable_create_service_slash_commands_shared_examples.rb')
-rw-r--r-- | spec/support/services/issuable_create_service_slash_commands_shared_examples.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/services/issuable_create_service_slash_commands_shared_examples.rb b/spec/support/services/issuable_create_service_slash_commands_shared_examples.rb index 5f9645ed44f..dd54b0addda 100644 --- a/spec/support/services/issuable_create_service_slash_commands_shared_examples.rb +++ b/spec/support/services/issuable_create_service_slash_commands_shared_examples.rb @@ -11,6 +11,8 @@ shared_examples 'new issuable record that supports slash commands' do let(:params) { base_params.merge(defined?(default_params) ? default_params : {}).merge(example_params) } let(:issuable) { described_class.new(project, user, params).execute } + before { project.team << [assignee, :master ] } + context 'with labels in command only' do let(:example_params) do { @@ -55,7 +57,7 @@ shared_examples 'new issuable record that supports slash commands' do context 'with assignee and milestone in params and command' do let(:example_params) do { - assignee: build_stubbed(:user), + assignee: create(:user), milestone_id: double(:milestone), description: %(/assign @#{assignee.username}\n/milestone %"#{milestone.name}") } |