diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-06 18:06:46 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-06 18:06:46 -0600 |
commit | 9d7c5e75841eff48217487b3acda56cf265a2aef (patch) | |
tree | d90819e572eab930a8729ed767f6565620922e8a /spec/features/projects/view_on_env_spec.rb | |
parent | b0279cc2239e0b24d59bc80085a9ba42fcf6226a (diff) | |
download | gitlab-ce-9d7c5e75841eff48217487b3acda56cf265a2aef.tar.gz |
Address feedback
Diffstat (limited to 'spec/features/projects/view_on_env_spec.rb')
-rw-r--r-- | spec/features/projects/view_on_env_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/view_on_env_spec.rb b/spec/features/projects/view_on_env_spec.rb index 552705661a9..ce5c5f21167 100644 --- a/spec/features/projects/view_on_env_spec.rb +++ b/spec/features/projects/view_on_env_spec.rb @@ -5,11 +5,11 @@ describe 'View on environment', js: true do let(:branch_name) { 'feature' } let(:file_path) { 'files/ruby/feature.rb' } - let(:project) { create(:project) } + let(:project) { create(:project, :repository) } let(:user) { project.creator } before do - project.team << [user, :master] + project.add_master(user) end context 'when the branch has a route map' do @@ -24,7 +24,7 @@ describe 'View on environment', js: true do Files::CreateService.new( project, user, - source_branch: branch_name, + start_branch: branch_name, target_branch: branch_name, commit_message: "Add .gitlab/route-map.yml", file_path: '.gitlab/route-map.yml', @@ -35,7 +35,7 @@ describe 'View on environment', js: true do Files::UpdateService.new( project, user, - source_branch: branch_name, + start_branch: branch_name, target_branch: branch_name, commit_message: "Update feature", file_path: file_path, |