spec/converge_spec.rb in org-converge-0.0.7 vs spec/converge_spec.rb in org-converge-0.0.8
- old
+ new
@@ -103,6 +103,32 @@
File.executable?(File.join(example_dir, 'run/3')).should == true
expected_contents = "init\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11"
File.read(File.join(example_dir, 'out.log')).should == expected_contents
end
+
+ it "should run 'expected_results' with src blocks" do
+ example_dir = File.join(EXAMPLES_DIR, 'expected_results')
+ setup_file = File.join(example_dir, 'spec.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 '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
end