diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-02 16:02:58 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-02 16:02:58 +0100 |
commit | ce5f7008fbd697e1af4a0bcf91b8a0d7c26cb643 (patch) | |
tree | a88cf5488cddb2d1c2296336685a10ee01ac4bb2 /spec/views | |
parent | e6fbae256960ef51eb7fd5e006c7ab2d83de9e16 (diff) | |
download | gitlab-ce-ce5f7008fbd697e1af4a0bcf91b8a0d7c26cb643.tar.gz |
Fixed view specscommit-limited-container-width
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/commit/show.html.haml_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/views/projects/commit/show.html.haml_spec.rb b/spec/views/projects/commit/show.html.haml_spec.rb index abbdc65ea71..122075cc10e 100644 --- a/spec/views/projects/commit/show.html.haml_spec.rb +++ b/spec/views/projects/commit/show.html.haml_spec.rb @@ -1,7 +1,6 @@ require 'spec_helper' describe 'projects/commit/show.html.haml', :view do - let(:user) { create(:user) } let(:project) { create(:project, :repository) } before do @@ -12,7 +11,7 @@ describe 'projects/commit/show.html.haml', :view do assign(:notes, []) assign(:diffs, project.commit.diffs) - allow(view).to receive(:current_user).and_return(user) + allow(view).to receive(:current_user).and_return(nil) allow(view).to receive(:can?).and_return(false) allow(view).to receive(:can_collaborate_with_project?).and_return(false) allow(view).to receive(:current_ref).and_return(project.repository.root_ref) |