Sha256: 328db70bec10f3d5af747427a777da5ae931894c87215d67c9d52dc762dc049f
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
require "test/version" # module for check and run tests module Test class Error < StandardError; end def self.assert(expected:, actual:) expected == actual ? "Passed" : "Failed" end # run all methods -> tests_array:, instance -> tests: # method without parameters def self.run_tests(test_class:, tests:) tests_array = test_class.instance_methods(false) tests_array.each do |test_method| puts tests.send(test_method) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
run_tests-0.1.1 | lib/test.rb |