Sha256: 8c879356b729d5c05d7263ef50914709f031f8f261cec64f8b5a4d5e2256ca25
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe 'FromCommand' do let(:command) do "mkdir abc && cd abc && echo stuff > abc.txt" end let(:from_command) do Overapp::FromCommand.new(:command => command, :path => "abc") end it 'files' do from_command.files.size.should == 1 from_command.files.first.path.should == 'abc.txt' from_command.files.first.full_body.strip.should == 'stuff' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
overapp-0.3.1 | spec/from_command_spec.rb |
overapp-0.3.0 | spec/from_command_spec.rb |
overapp-0.2.0 | spec/from_command_spec.rb |