Sha256: d57c0beb8b81f0a13be6582a241d30376779df84a82291c032f8b6a32ec5b39c

Contents?: true

Size: 563 Bytes

Versions: 6

Compression:

Stored size: 563 Bytes

Contents

require 'base_test'
require 'mocha'

# Define this symbol without requiring the library;
# all we're goingn 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

6 entries across 6 versions & 1 rubygems

Version Path
methadone-1.2.4 test/execution_strategy/test_rbx_open_4.rb
methadone-1.2.3 test/execution_strategy/test_rbx_open_4.rb
methadone-1.2.2 test/execution_strategy/test_rbx_open_4.rb
methadone-1.2.1 test/execution_strategy/test_rbx_open_4.rb
methadone-1.2.0 test/execution_strategy/test_rbx_open_4.rb
methadone-1.1.0 test/execution_strategy/test_rbx_open_4.rb