Sha256: bd9e7a088be0a32a91d6d482a77e875c3028636e6c78fd68e9566f45427c9431
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true RSpec.describe TTY::Command, '#test' do it "implements classic bash command" do cmd = TTY::Command.new result = double(:success? => true) allow(cmd).to receive(:run!).with(:test, '-e /etc/passwd').and_return(result) expect(cmd.test("-e /etc/passwd")).to eq(true) expect(cmd).to have_received(:run!) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.9.0 | spec/unit/test_spec.rb |