Sha256: 315e31756eb45e7faf056b599b1dcb68df19b2fd840e5ae475d5652006729eab

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Mina::Runner::Printer do
  subject(:runner) { described_class.new('echo hello') }

  describe '#run' do
    it 'prints the script to stdout' do
      expect do
        runner.run
      end.to output("echo hello\n").to_stdout
    end

    it 'returns true', :suppressed_output do
      expect(runner.run).to eq(true)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mina-1.2.5 spec/lib/mina/runner/printer_spec.rb