Sha256: 22b357a61b1df3c37a8f47e0ac9b3cd5307daa42bb3bac528640ba294f2d33c2

Contents?: true

Size: 517 Bytes

Versions: 34

Compression:

Stored size: 517 Bytes

Contents

require 'base_test'

module ExecutionStrategy
  class TestBase < BaseTest
    include Methadone::ExecutionStrategy

    [
      [:run_command,["ls"]],
      [:exception_meaning_command_not_found,[]],
    ].each do |(method,args)|
      test_that "#{method} isn't implemented" do
        Given {
          @strategy = Base.new
        }
        When {
          @code = lambda { @strategy.send(method,*args) }
        }
        Then {
          assert_raises(RuntimeError,&@code)
        }
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

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