Dr Nic's Journey

The small things in my day so I don't clutter the Dr Nic site.

Areas of interest: Ruby, Rails, JavaScript, Editors, and my life in general.

Subscribe:

Dr Nic Blog:

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.