Thank you so far! I tried the following:
blog = blogs(:first_blog)
assert_difference Comment, :count, blog.comments.size do
assert blog.destroy
end
Then I get the error:
TypeError: can't convert Class into String
So I changed Comment to 'Comment':
assert_difference 'Comment', :count, blog.comments.size do
assert blog.destroy
end
NoMethodError: undefined method `+' for #<Class:0x22cb198>
And that doesn't make any sense to me... ;-) Any help? :-)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---