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

Version Path
pione-0.5.0 test/command/spec_pione-action-exec.rb
pione-0.5.0.alpha.2 test/command/spec_pione-action-exec.rb
pione-0.5.0.alpha.1 test/command/spec_pione-action-exec.rb
pione-0.4.2 test/command/spec_pione-action-exec.rb
pione-0.4.1 test/command/spec_pione-action-exec.rb
pione-0.4.0 test/command/spec_pione-action-exec.rb