Sha256: 1d75ded715776f2417d2847db1c3401a6422703c31f3c50eb5341cf69ec2017c
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') require 'rbbt/util/chain_methods' require 'test/unit' module TestChainedModule extend ChainMethods def test_chain_get_brackets(value) self.test_chain_clean_get_brackets(value).reverse end self.chain_prefix = :test_chain end class TestChaimMethods < Test::Unit::TestCase def test_chained_reverse_get a = ["test", "TEST"] TestChainedModule.setup_chain(a) assert_equal "test".reverse, a[0] assert_equal "TEST".reverse, a[1] end end
Version data entries
4 entries across 4 versions & 1 rubygems