Sha256: be349388cf0157dc7c6f1bb440ac64363db6cefe553482c9f43e7035ce388e0b
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 Bytes
Contents
require 'pione/test-helper' describe Pione::Command::PioneActionExec do before do @cmd = Pione::Command::PioneActionExec @dir = Location[File.dirname(__FILE__)] + ".." + "literate-action" + "data" end it "should execute action" do base = Location[Temppath.mkdir] args = [(@dir + "HelloWorld.md").path.to_s, "SayHello", "-d", base.path.to_s] cmd = @cmd.new(args) Rootage::ScenarioTest.succeed(cmd) (base + "message.txt").read.chomp.should == "Hello, world!" end end
Version data entries
6 entries across 6 versions & 1 rubygems