Sha256: 5a8270bd9dcd0263066329de8952a5c8b009773acbf6f954ac2929435dff87b9

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

require File.expand_path(File.dirname(__FILE__))+'/test_helper'

class StringTest < Minitest::Test
  context "#deep_const_get" do
    should "return a class" do
      assert_equal Socialization, "Socialization".deep_const_get
      assert_equal Socialization::CassandraStores, "Socialization::CassandraStores".deep_const_get
      assert_equal Socialization::CassandraStores::Follow, "Socialization::CassandraStores::Follow".deep_const_get

      assert_raises(NameError) { "Foo::Bar".deep_const_get }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
socialization-cassandra-0.0.7.pre.alpha test/string_test.rb
socialization-cassandra-0.0.6.pre.alpha test/string_test.rb
socialization-cassandra-0.0.5.pre.alpha test/string_test.rb
socialization-cassandra-0.0.4.pre.alpha test/string_test.rb
socialization-cassandra-0.0.3.pre.alpha test/string_test.rb
socialization-cassandra-0.0.2.pre.alpha test/string_test.rb
socialization-cassandra-0.0.1.pre.alpha test/string_test.rb