Sha256: 916511ea9249a3ac0c3e1bf2a428e15ba95a01a56220fca682f8ac278435cad7

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

require 'pione/test-helper'

describe Pione::Command::PioneActionPrint do
  before do
    @cmd = Pione::Command::PioneActionPrint
    @dir = Location[File.dirname(__FILE__)] + ".." + "literate-action" + "data"
  end

  it "should print action contents" do
    cmd = @cmd.new([(@dir + "HelloWorld.md").path.to_s, "SayHello"])
    res = Rootage::ScenarioTest.succeed(cmd)
    res.stdout.string.chomp.should == "echo \"Hello, world!\" > message.txt"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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