Sha256: 8330710850d9c2656f8ad1f3b599f9637ee0ab1981109b705cb2bb1cfd3f6eaf
Contents?: true
Size: 679 Bytes
Versions: 6
Compression:
Stored size: 679 Bytes
Contents
require 'pione/test-helper' require 'pione/command/pione-val' require_relative 'command-behavior' describe Pione::Command::PioneVal do before do @cmd = Pione::Command::PioneVal end behaves_like "command" it "should get value" do cmd = @cmd.new(["1 + 1"]) res = Rootage::ScenarioTest.succeed(cmd) res.stdout.string.chomp.should == "2" end it "should get variable from domain info" do domain_info = Location[File.dirname(__FILE__)] + "data" + "pione-val.domain.dump" cmd = @cmd.new(["$O[1]", "--domain-dump", domain_info.path.to_s]) res = Rootage::ScenarioTest.succeed(cmd) res.stdout.string.chomp.should == "message.txt" end end
Version data entries
6 entries across 6 versions & 1 rubygems