Sha256: 7856f7b07d3bd88cea6d0aef2b915a233597213a06a2c8a25eb82bcbd00f391b

Contents?: true

Size: 547 Bytes

Versions: 7

Compression:

Stored size: 547 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
      }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
methadone-1.0.0 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc6 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc5 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc4 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc3 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc2 test/execution_strategy/test_rbx_open_4.rb
methadone-1.0.0.rc1 test/execution_strategy/test_rbx_open_4.rb