diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-01-22 16:01:48 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-01-22 16:01:48 -0600 |
commit | 2c1d7c09483948f764693f30cc070671a93f789f (patch) | |
tree | 1c7b0da33aed391bafe478fc50fb44e01fe3715b /spec | |
parent | de4993d4c5b2e9cc03e53369fefd4ad3af2a3c38 (diff) | |
download | gitlab-ce-2c1d7c09483948f764693f30cc070671a93f789f.tar.gz |
fix spacing and wrap method params in parens
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 434df5d2849..c0251bf7dc0 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -30,7 +30,7 @@ describe ProjectsHelper do it 'allows visibility level to be changed if the project is forked' do allow(helper).to receive(:can?).with(user, :change_visibility_level, project) { true } - project.update! visibility_level: Gitlab::VisibilityLevel::PRIVATE + project.update!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) fork_project(project) expect(helper.can_change_visibility_level?(project, user)).to be_truthy @@ -40,7 +40,7 @@ describe ProjectsHelper do it "returns false if there are permissions and origin project is PRIVATE" do allow(helper).to receive(:can?) { true } - project.update visibility_level: Gitlab::VisibilityLevel::PRIVATE + project.update(visibility_level: Gitlab::VisibilityLevel::PRIVATE) expect(helper.can_change_visibility_level?(forked_project, user)).to be_falsey end @@ -48,7 +48,7 @@ describe ProjectsHelper do it "returns true if there are permissions and origin project is INTERNAL" do allow(helper).to receive(:can?) { true } - project.update visibility_level: Gitlab::VisibilityLevel::INTERNAL + project.update(visibility_level: Gitlab::VisibilityLevel::INTERNAL) expect(helper.can_change_visibility_level?(forked_project, user)).to be_truthy end |