Sha256: dfc25062b53db234ef547e16fe34464f8749299849af79d946f55830a9216a80
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
$LOAD_PATH.<< File.expand_path '../../lib', __FILE__ require 'invokr' require 'minitest' require 'minitest/autorun' require 'minitest/reporters' Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new module TestMethodBank extend self def required_argument album album end def optional_argument album = 'junta' album end def double_optional_argument album1 = 'junta', album2 = 'rift' end def block_argument &album_block album_block.call end def multiple_required_arguments album, guitarist [album, guitarist] end def one_required_one_optional_argument album, guitarist = 'trey' [album, guitarist] end def just_yields yield end def inspect "#<#{name}:0xdeadbeef>" end if RUBY_VERSION >= '2.0' module_eval <<-RB, __FILE__, __LINE__ def optional_keyword_argument album: 'pitcher_of_nectar' album end RB end if RUBY_VERSION >= '2.1' module_eval <<-RB, __FILE__, __LINE__ def required_keyword_argument(album:) album end RB end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
invokr-0.0.4 | test/test_helper.rb |
invokr-0.0.2 | test/test_helper.rb |
invokr-0.0.1 | test/test_helper.rb |