Module: SimplyTaggable::Assertions::ClassMethods
- Defined in:
- lib/simply_taggable/assertions.rb
Instance Method Summary collapse
Instance Method Details
#assert_simply_taggable ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/simply_taggable/assertions.rb', line 7 def assert_simply_taggable test "should be simply taggable" do assert model_name.constantize.new.respond_to?(:tags) assert model_name.constantize.new.respond_to?(:taggings) # self.class.assert_should_have_many :taggings # self.class.assert_should_have_many :tags, :polymorphic => true end end |
#assert_simply_taggable_tagger ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/simply_taggable/assertions.rb', line 18 def assert_simply_taggable_tagger test "should be simply taggable tagger" do # self.class.assert_should_have_many :tags, :polymorphic => true assert model_name.constantize.new.respond_to?(:tags) # assert model_name.constantize.new.respond_to?(:taggings) end end |