Sha256: cce121df1a2471d21e21c184d2330e4906cebf40364763b9e882fb794b322aad

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

require 'test_helper'

class Superstore::Associations::ReflectionTest < Superstore::TestCase
  class ::Status < Superstore::Base; end
  class ::Job < Superstore::Base
    belongs_to :status
  end

  test 'class_name' do
    assert_equal 'Status', Job.new.association_reflections[:status].class_name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
superstore-2.0.1 test/unit/associations/reflection_test.rb
superstore-2.0.0 test/unit/associations/reflection_test.rb