spec/converge_spec.rb in org-converge-0.0.11 vs spec/converge_spec.rb in org-converge-0.0.12
- old
+ new
@@ -104,11 +104,11 @@
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
+ pending "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,
@@ -142,7 +142,21 @@
})
success = o.execute!
success.should == true
largest = File.open("#{example_dir}/result").read
largest.should == "906609\n"
+ end
+
+ it "should support 'block_modifiers'" do
+ example_dir = File.join(EXAMPLES_DIR, 'block_modifiers')
+ 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
+ result = File.open("#{example_dir}/out.log").read
+ result.should == "whoosh\n1\n2\n3\n4\n"
end
end