Topic: Should I even have this test??
I'm new to testing and am trying to write some good tests but was wondering if this was even useful:
it "should increment post count by only 1" do
@user.attributes = valid_user_attributes
old_count = @user.num_posts
@user.num_posts.should == old_count+1
self.num_posts = 1
---Seems kind of stupid to me, no? Are these the kind of tests I should be writing? Thanks