Sha256: f4a542ab25a1f53dce47881affe0d53b0498c77979d77d089341a242a607d7e6
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
require_relative '../test-util' require_relative 'command-behavior' describe "Pione::Command::PioneVal" do behaves_like "command" it "should get value" do res = TestUtil::Command.succeed do Command::PioneVal.run ["1 + 1"] end res.stdout.string.chomp.should == "2" end it "should get variable from domain info" do domain_info = TestUtil::DIR + "command" + "spec_pione-val.domain.dump" res = TestUtil::Command.succeed do Command::PioneVal.run ["$O[1]", "--domain-info", domain_info.path.to_s] end res.stdout.string.chomp.should == "message.txt" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | test/command/spec_pione-val.rb |
pione-0.2.1 | test/command/spec_pione-val.rb |