mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
taggable_type should be accessible for test
This commit is contained in:
parent
cc21081d77
commit
1234abb266
2 changed files with 3 additions and 3 deletions
|
|
@ -5,9 +5,9 @@ class TaggingTest < ActiveSupport::TestCase
|
|||
|
||||
def test_removes_unused_tags
|
||||
tag = Tag.create!(:name => "hello")
|
||||
tagging = Tagging.create!(:tag => tag, :taggable_id => 1)
|
||||
tagging = Tagging.create!(:tag => tag, :taggable_id => 1, :taggable_type => "Todo")
|
||||
|
||||
assert_equal 1, Tagging.find(:all, :conditions => ["tag_id = ?", tag.id]).count
|
||||
assert_equal 1, Tagging.where("tag_id = ?", tag.id).count
|
||||
|
||||
tagging.destroy
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue