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

Version Path
methadone-2.0.2 test/unit/execution_strategy/test_mri.rb
methadone-2.0.1 test/unit/execution_strategy/test_mri.rb
methadone-2.0.0 test/unit/execution_strategy/test_mri.rb
methadone-1.9.5 test/execution_strategy/test_mri.rb
methadone-1.9.4 test/execution_strategy/test_mri.rb
methadone-1.9.3 test/execution_strategy/test_mri.rb
methadone-1.9.2 test/execution_strategy/test_mri.rb
methadone-rehab-1.9.2 test/execution_strategy/test_mri.rb
methadone-1.9.1 test/execution_strategy/test_mri.rb
methadone-1.9.0 test/execution_strategy/test_mri.rb
methadone-1.8.0 test/execution_strategy/test_mri.rb
methadone-1.7.0 test/execution_strategy/test_mri.rb
methadone-1.6.0 test/execution_strategy/test_mri.rb
methadone-1.5.1 test/execution_strategy/test_mri.rb
methadone-1.5.0 test/execution_strategy/test_mri.rb
methadone-1.4.0 test/execution_strategy/test_mri.rb
methadone-1.3.2 test/execution_strategy/test_mri.rb
methadone-1.3.1 test/execution_strategy/test_mri.rb
methadone-1.3.0 test/execution_strategy/test_mri.rb
methadone-1.2.6 test/execution_strategy/test_mri.rb