Sha256: 5f249b6ff00db97ae98cc8a9eefa9027484c4e58ed98daf750e1e0ea9e0cbd17
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
# encoding: utf-8 class Cri::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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cri-2.6.1 | test/test_command_runner.rb |
cri-2.6.0 | test/test_command_runner.rb |