Skip to content

Instantly share code, notes, and snippets.

@uberllama
uberllama / gist:1d0323438700d4f23bbb
Last active August 29, 2015 14:09
Erroneous validation on has_many :through with existing record
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.1.7'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# This connection will do for database-independent bug reports.