Sha256: 2b77e3ff34e0703b071bc0db0496bdb3126668d70a780aad67fca62dfc52bc64

Contents?: true

Size: 789 Bytes

Versions: 17

Compression:

Stored size: 789 Bytes

Contents

# frozen_string_literal: true

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

17 entries across 17 versions & 1 rubygems

Version Path
cri-2.15.12 test/test_command_runner.rb
cri-2.15.11 test/test_command_runner.rb
cri-2.15.10 test/test_command_runner.rb
cri-2.15.9 test/test_command_runner.rb
cri-2.15.8 test/test_command_runner.rb
cri-2.15.7 test/test_command_runner.rb
cri-2.15.6 test/test_command_runner.rb
cri-2.15.5 test/test_command_runner.rb
cri-2.15.4 test/test_command_runner.rb
cri-2.15.3 test/test_command_runner.rb
cri-2.15.2 test/test_command_runner.rb
cri-2.15.1 test/test_command_runner.rb
cri-2.15.0 test/test_command_runner.rb
cri-2.14.0 test/test_command_runner.rb
cri-2.13.0 test/test_command_runner.rb
cri-2.12.0 test/test_command_runner.rb
cri-2.11.0 test/test_command_runner.rb