spec/converge_spec.rb in org-converge-0.0.9 vs spec/converge_spec.rb in org-converge-0.0.10
- old
+ new
@@ -117,18 +117,32 @@
})
success = o.execute!
success.should == true
end
- it "should run 'expected_results' with example blocks" do
+ pending "should run 'expected_results' with example blocks" do
example_dir = File.join(EXAMPLES_DIR, 'expected_results')
setup_file = File.join(example_dir, 'spec2.org')
o = OrgConverge::Command.new({
'<org_file>' => setup_file,
'--root-dir' => example_dir,
'--runmode' => 'spec'
})
success = o.execute!
success.should == true
+ end
+
+ it "should run 'multi_proc' with the same number of defined :procs" do
+ example_dir = File.join(EXAMPLES_DIR, 'multi_proc')
+ setup_file = File.join(example_dir, 'run.org')
+
+ o = OrgConverge::Command.new({
+ '<org_file>' => setup_file,
+ '--root-dir' => example_dir
+ })
+ success = o.execute!
+ success.should == true
+ largest = File.open("#{example_dir}/result").read
+ largest.should == "906609\n"
end
end