gitlab-org--gitlab-foss/spec/models/network/graph_spec.rb
2017-01-26 17:44:59 -05:00

12 lines
379 B
Ruby

require 'spec_helper'
describe Network::Graph, models: true do
let(:project) { create(:project, :repository) }
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