From 9d7c5e75841eff48217487b3acda56cf265a2aef Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Mon, 6 Feb 2017 18:06:46 -0600 Subject: Address feedback --- spec/features/projects/view_on_env_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/features/projects/view_on_env_spec.rb') 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, -- cgit v1.2.1