Sha256: c039f9d81a7cee437370ee436bd03b258a97518f0219fc06105727a5db596019
Contents?: true
Size: 691 Bytes
Versions: 34
Compression:
Stored size: 691 Bytes
Contents
require 'base_test' module ExecutionStrategy class TestMRI < BaseTest include Methadone::ExecutionStrategy test_that "run_command isn't implemented" do Given new_mri_strategy When { @code = lambda { @strategy.run_command("ls") } } Then { assert_raises(RuntimeError,&@code) } end test_that "exception_meaning_command_not_found returns Errno::ENOENT" do Given new_mri_strategy When { @klass = @strategy.exception_meaning_command_not_found } Then { @klass.should == Errno::ENOENT } end private def new_mri_strategy lambda { @strategy = MRI.new } end end end
Version data entries
34 entries across 34 versions & 2 rubygems