diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-01-28 14:49:21 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-01-28 14:49:21 +0100 |
commit | b636f83e5910d10a954464370efe42cc14a097ba (patch) | |
tree | 25576ef4d66cff8d40cba4004302a178bfc2ec4e /spec/controllers | |
parent | 4be80f8aa3c585882b4499d6d69dcbf4a97eff29 (diff) | |
download | gitlab-ce-b636f83e5910d10a954464370efe42cc14a097ba.tar.gz |
Move blame group logic to dedicated class
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/blame_controller_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/controllers/blame_controller_spec.rb b/spec/controllers/blame_controller_spec.rb index 3ad4d5fc0a8..25f06299a29 100644 --- a/spec/controllers/blame_controller_spec.rb +++ b/spec/controllers/blame_controller_spec.rb @@ -24,20 +24,6 @@ describe Projects::BlameController do context "valid file" do let(:id) { 'master/files/ruby/popen.rb' } it { is_expected.to respond_with(:success) } - - it 'groups blames properly' do - blame = assigns(:blame) - # Sanity check a few items - expect(blame.count).to eq(18) - expect(blame[0][:commit].sha).to eq('913c66a37b4a45b9769037c55c2d238bd0942d2e') - expect(blame[0][:lines]).to eq(["require 'fileutils'", "require 'open3'", ""]) - - expect(blame[1][:commit].sha).to eq('874797c3a73b60d2187ed6e2fcabd289ff75171e') - expect(blame[1][:lines]).to eq(["module Popen", " extend self"]) - - expect(blame[-1][:commit].sha).to eq('913c66a37b4a45b9769037c55c2d238bd0942d2e') - expect(blame[-1][:lines]).to eq([" end", "end"]) - end end end end |