Sha256: b3e502451c1e6baf1dd6867e6d2edf3b3270447b4fc7ebcd2f13a043e9d06d83

Contents?: true

Size: 758 Bytes

Versions: 4

Compression:

Stored size: 758 Bytes

Contents

require 'helper'

module Cri
  class CommandRunnerTestCase < Cri::TestCase
    def setup
      super

      @options   = { vehicle: 'pig' }
      @arguments = %w[baby_monkey]
      @command   = Cri::Command.new
    end

    def test_initialize
      runner = Cri::CommandRunner.new(@options, @arguments, @command)

      assert_equal @options,   runner.options
      assert_equal @arguments, runner.arguments
      assert_equal @command,   runner.command
    end

    def test_call_run
      assert_raises(Cri::NotImplementedError) do
        Cri::CommandRunner.new(@options, @arguments, @command).call
      end

      assert_raises(Cri::NotImplementedError) do
        Cri::CommandRunner.new(@options, @arguments, @command).run
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cri-2.10.1 test/test_command_runner.rb
cri-2.10.0 test/test_command_runner.rb
cri-2.9.1 test/test_command_runner.rb
cri-2.9.0 test/test_command_runner.rb