Sha256: 06dc8f5607ec076d9f72eee143cdfb85f9c7ea3842402a9a0d29c32cfce0e0f3

Contents?: true

Size: 531 Bytes

Versions: 918

Compression:

Stored size: 531 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"]
    a.extend TestChainedModule
    assert_equal "test".reverse, a[0]
    assert_equal "TEST".reverse, a[1]
  end
end

Version data entries

918 entries across 918 versions & 1 rubygems

Version Path
rbbt-util-5.34.16 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.15 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.14 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.13 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.12 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.11 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.10 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.9 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.8 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.7 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.5 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.4 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.3 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.2 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.1 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.34.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.33.21 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.33.20 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.33.19 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.33.18 test/rbbt/util/test_chain_methods.rb