Topic: What's the point of some of the shoulda matchers?
Given this example:
describe Post do
it { should belong_to(:user) }
it { should validate_presence_of(:title) }
endWhy are these tests even necessary when they are exact mirrors of the rails functions? Isn't that essentially testing the framework? This kind of thing seems pointless to me. If I have a method call in my Post class that says "belongs_to(:user)", why would I bother testing that?
Last edited by ryeguy (2011-02-04 15:24:55)