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