I mocked something
I used mocha for the first time:
Post.expects(:find).with(60).returns(post)
assert_equal(post, 60.to_post, "to_activerecord not working")
Like the 60.to_post syntax? Use the to_activerecord gem.
I used mocha for the first time:
Post.expects(:find).with(60).returns(post)
assert_equal(post, 60.to_post, "to_activerecord not working")
Like the 60.to_post syntax? Use the to_activerecord gem.