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