Sha256: f4d363b98168a4423bf7dce7c27080fa0a1ea07bf9a73f35f0cf4df30c907c32
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb') require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1') class TestMiscHelper < Test::Unit::TestCase def test_divide assert_equal 2, Misc.divide(%w(1 2 3 4 5 6 7 8 9),2).length end def test_chunk assert_equal %w(1 2), Misc.chunk(%w(1 2 3 4 5 6 7 8 9),2)[0] end def test_ordered_divide assert_equal 5, Misc.ordered_divide(%w(1 2 3 4 5 6 7 8 9),2).length end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scout-essentials-1.6.3 | test/scout/misc/test_helper.rb |