Sha256: 9702b5be6fabd6ff582802e19fb321f446170bc5f320df4015f3f6a1b9da44a8
Contents?: true
Size: 450 Bytes
Versions: 9
Compression:
Stored size: 450 Bytes
Contents
require_relative "test_helper" class AmbiguousTableTest < ActiveSupport::TestCase test "no ambiguous table problem" do archival = Archival.create! child = archival.archivals.create! child.archive! # this is a bug fix for a problem wherein table names weren't being # namespaced, so if a table joined against itself, incorrect SQL was # generated assert_equal 1, Archival.unarchived.joins(:archivals).count end end
Version data entries
9 entries across 9 versions & 2 rubygems