Sha256: 9df133fb9c8a42730e27326f157dd5d7fc53a35412675bc4c9eb5ebe0899a97f

Contents?: true

Size: 568 Bytes

Versions: 21

Compression:

Stored size: 568 Bytes

Contents

require 'base_test'
require 'mocha/setup'

# Define this symbol without requiring the library;
# all we're going to do is mock calls to it
module Open4
end

module ExecutionStrategy
  class TestRBXOpen_4 < BaseTest
    include Methadone::ExecutionStrategy

    test_that "exception_meaning_command_not_found returns Errno::EINVAL" do
      Given {
        @strategy = RBXOpen_4.new
      }
      When {
        @klass = @strategy.exception_meaning_command_not_found
      }
      Then {
        @klass.should == [Errno::EINVAL,Errno::ENOENT]
      }
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

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