Sha256: 7baa2c8615e2c7b4b41ce3ef9c771e9bc80be15364126ca20ce9b3bf618f1d99
Contents?: true
Size: 791 Bytes
Versions: 5
Compression:
Stored size: 791 Bytes
Contents
require 'spec_helper' require 'aruba/api' RSpec.describe Aruba::Api::Commands do include_context 'uses aruba API' describe '#run_command' do before(:each){ @aruba.run_command 'cat' } after(:each) { @aruba.all_commands.each(&:stop) } it "responds to input" do @aruba.type "Hello" @aruba.type "" expect(@aruba.last_command_started).to have_output "Hello" end it "responds to close_input" do @aruba.type "Hello" @aruba.close_input expect(@aruba.last_command_started).to have_output "Hello" end it "pipes data" do @aruba.write_file(@file_name, "Hello\nWorld!") @aruba.pipe_in_file(@file_name) @aruba.close_input expect(@aruba.last_command_started).to have_output "Hello\nWorld!" end end end
Version data entries
5 entries across 5 versions & 2 rubygems