Sha256: e8eb93e100011e13df4543469f4a455b8cbc6ba819bcb2c5f038576ecacbbec5
Contents?: true
Size: 311 Bytes
Versions: 7
Compression:
Stored size: 311 Bytes
Contents
require 'test_helper' module Categorical class TaggableTest < ActiveSupport::TestCase def test_taggable_has_many_tags_through_taggings taggable = Post.new tag = Tag.new(label: "tag") taggable.tags << tag taggable.save! assert_equal(taggable.tags, [tag]) end end end
Version data entries
7 entries across 7 versions & 1 rubygems