Sha256: 4ff5ef88eb59a3222fb2eea966a1354e075a26f358889b9595d3549d0905f61a
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper') describe Syscmd::Command, ".new" do subject { Syscmd::Command.new(TESTER) } it "should have #{TESTER} as cmd attribute" do subject.cmd.should == TESTER end it "should not be executed after creation" do subject.executed?.should == false end end describe Syscmd::Command, ".new with -s 'Hello World'" do subject { Syscmd::Command.new(TESTER, '-s', 'Hello World') } it "should have the cmd attribute #{TESTER}" do subject.cmd.should == TESTER end it "should have the command line arguments ['-s', 'Hello World']" do subject.args.should == ['-s', 'Hello World'] end it "should have the command line '#{TESTER} -s \"Hello World\"'" do subject.cmdline.should == "#{TESTER} -s \"Hello World\"" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
tsalzer-syscmd-0.0.1 | spec/command_spec.rb |
tsalzer-syscmd-0.0.3 | spec/command_spec.rb |
syscmd-0.0.3 | spec/command_spec.rb |