Sha256: 5f954f06b643ca505bbae7e9b3e179d3daeb95d5cbd66cd6a4b405d8e70a3e1d
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require 'spec_helper' describe "community (executable)" do it "outputs a hierarchy", :retry => 3 do filename = File.dirname(__FILE__) + "/../data/karate.bin" run "community -l -1 #{filename}" relevant_lines = out.split("\n").last(4) relevant_lines[0].should == "1 1" relevant_lines[1].should == "2 2" relevant_lines[2].should == "3 3" relevant_lines[3].to_f.round(1).should == 0.4 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
find_communities-0.0.1 | spec/bin/community_spec.rb |