Sha256: 79346ce848e9ba35e7aeadf8455a836dfdac8cff3add9e66f7baeff72edd1762

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 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 'superstore_base_test_sons', Son.table_name
    assert_equal 'superstore_base_test_sons', Grandson.table_name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
superstore-2.0.1 test/unit/base_test.rb
superstore-2.0.0 test/unit/base_test.rb