require'spec_helper'describeGraphHelperdodescribe'#get_refs'dolet(:project){create(:project)}let(:commit){project.commit("master")}let(:graph){Network::Graph.new(project,'master',commit,'')}it'filter our refs used by GitLab'doallow(commit).toreceive(:ref_names).and_return(['refs/merge-requests/abc','master','refs/tmp/xyz'])self.instance_variable_set(:@graph,graph)refs=get_refs(project.repository,commit)expect(refs).toeq('master')endendend