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

Version Path
categorical-0.0.10 test/models/categorical/concerns/taggable_test.rb
categorical-0.0.9.1 test/models/categorical/concerns/taggable_test.rb
categorical-0.0.9 test/models/categorical/concerns/taggable_test.rb
categorical-0.0.9.rc test/models/categorical/concerns/taggable_test.rb
categorical-0.0.8.rc test/models/categorical/concerns/taggable_test.rb
categorical-0.0.6.rc test/models/categorical/concerns/taggable_test.rb
categorical-0.0.4 test/models/categorical/concerns/taggable_test.rb