Sha256: 8d521678c4a1decb0e81e87a1911cfd0dc690b6cc84b87beadfb9d56ff208a2c

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

describe ScbiGo::AncestorsGraph do
	before(:all) do
    	@go=ScbiGo::GeneOntology.new
   
  	end
	
	it "Should make a graph and dot file" do
		g=@go.find_go('GO:0001071');
		g=@go.find_go('GO:0031323')
		file_name="/tmp/dot_#{Time.now.strftime('%s')}.dot"
		@graph=ScbiGo::AncestorsGraph.new(g.self_and_ancestors,file_name,'grafica',true)
		expect(File).to exist(file_name)
		expect(File).to exist(file_name+'.pdf')
		
	end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scbi_go-0.0.1 spec/lib/ancestors_graph_spec.rb