Module: SimplyCommentable::Assertions::ClassMethods

Defined in:
lib/simply_commentable/assertions.rb

Instance Method Summary collapse

Instance Method Details

#assert_simply_commentableObject



6
7
8
9
10
11
12
# File 'lib/simply_commentable/assertions.rb', line 6

def assert_simply_commentable
#			assert_should_have_many :comments, :polymorphic => true
	test "should be simply commentable" do
		assert model_name.constantize.new.respond_to?(:comments)
#				self.class.assert_should_have_many :comments, :polymorphic => true
	end
end

#assert_simply_commentable_commenterObject



13
14
15
16
17
18
19
# File 'lib/simply_commentable/assertions.rb', line 13

def assert_simply_commentable_commenter
#			assert_should_have_many :comments, :polymorphic => true
	test "should be simply commentable commenter" do
		assert model_name.constantize.new.respond_to?(:comments)
#				self.class.assert_should_have_many :comments, :polymorphic => true
	end
end