Sha256: a7fcfaef0d4469de1442cf6cc63f7446c660b31e00e144098e2b7c2a33653b02

Contents?: true

Size: 420 Bytes

Versions: 11

Compression:

Stored size: 420 Bytes

Contents

require 'test_helper'

class Superstore::BaseTest < Superstore::TestCase
  class Son < Superstore::Base
  end

  class Grandson < Son
  end

  test 'base_class' do
    assert_equal Superstore::Base, Superstore::Base
    assert_equal Son, Son.base_class
    assert_equal Son, Grandson.base_class
  end

  test 'table_name' do
    assert_equal 'sons', Son.table_name
    assert_equal 'sons', Grandson.table_name
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
superstore-2.4.4 test/unit/base_test.rb
superstore-2.4.3 test/unit/base_test.rb
superstore-2.4.2 test/unit/base_test.rb
superstore-2.4.1 test/unit/base_test.rb
superstore-2.4.0 test/unit/base_test.rb
superstore-2.3.0 test/unit/base_test.rb
superstore-2.2.0 test/unit/base_test.rb
superstore-2.1.3 test/unit/base_test.rb
superstore-2.1.2 test/unit/base_test.rb
superstore-2.1.1 test/unit/base_test.rb
superstore-2.1.0 test/unit/base_test.rb