From a8d66d0f4ad6cabe308d7cd891c990014cc41b81 Mon Sep 17 00:00:00 2001 From: Carlos Agarie Date: Thu, 19 Dec 2013 01:12:36 -0200 Subject: [PATCH] Removed graph calls in specs They're unnecessary and will be substituted by a further spec. --- spec/id3_spec.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spec/id3_spec.rb b/spec/id3_spec.rb index 828f260..8c1eed6 100644 --- a/spec/id3_spec.rb +++ b/spec/id3_spec.rb @@ -1,9 +1,6 @@ require 'spec_helper' describe describe DecisionTree::ID3Tree do - after :each do - File.delete("continuous.png") if File.file?("continuous.png") - end describe "simple discrete case" do Given(:labels) { ["sun", "rain"]} @@ -51,7 +48,6 @@ describe describe DecisionTree::ID3Tree do end Given(:tree) { DecisionTree::ID3Tree.new(labels, data, "not angry", :continuous) } When { tree.train } - Then { tree.graph("continuous") } Then { tree.predict([7, 7]).should == "angry" } Then { tree.predict([2, 3]).should == "not angry" } end @@ -72,7 +68,6 @@ describe describe DecisionTree::ID3Tree do end Given(:tree) { DecisionTree::ID3Tree.new(labels, data, "not angry", color: :discrete, hunger: :continuous) } When { tree.train } - Then { tree.graph("continuous") } Then { tree.predict([7, "red"]).should == "angry" } Then { tree.predict([2, "blue"]).should == "not angry" } end