Sha256: 9a7b59fc3833b03fdc35b46fbadf0dc69cd1244027fbbcdceef04aaa1b028b0f
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
require 'test_helper' class Superstore::Associations::HasManyTest < Superstore::TestCase class TestObject < Issue end test 'has_many' do issue = TestObject.create! label = Label.create! name: 'important', issue_id: issue.id assert_equal [label], issue.labels end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-2.0.0 | test/unit/associations/has_many_test.rb |