Welcome to mirror list, hosted at ThFree Co, Russian Federation.

graph_spec.rb « network « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b76513d2a3c7cb040c1cec1a95149f5a8f1bd0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe Network::Graph, models: true do
  let(:project) { create(:project) }
  let!(:note_on_commit) { create(:note_on_commit, project: project) }

  it '#initialize' do
    graph = described_class.new(project, 'refs/heads/master', project.repository.commit, nil)

    expect(graph.notes).to eq( { note_on_commit.commit_id => 1 } )
  end
end