Sha256: 589ee1e42a7eecd9ad0f1b7ca4aaafe619d8a8c10391ec3b4209d9cb09ce18f0
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper_system' describe "basic tests:" do it "check system_run works" do system_run("cat /etc/hosts") do |r| r[:exit_code].should == 0 r[:stdout].should =~ /localhost/ end end it 'check system_rcp works' do system_rcp( :sp => fixture_root + 'example_dir', :dp => '/tmp/example_destination' ) system_run('cat /tmp/example_destination/example_file') do |r| r[:exit_code].should == 0 r[:stdout].should =~ /Test content 1234/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-system-0.3.2 | spec/system/basic_spec.rb |
rspec-system-0.3.1 | spec/system/basic_spec.rb |