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.43.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.42.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.41.1 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.41.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.40.5 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.40.4 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.40.3 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.40.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.39.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.38.1 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.38.0 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.16 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.15 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.14 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.13 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.12 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.11 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.10 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.9 test/rbbt/util/test_chain_methods.rb
rbbt-util-5.37.8 test/rbbt/util/test_chain_methods.rb