search for: test_should_cr

Displaying 1 result from an estimated 1 matches for "test_should_cr".

Did you mean: test_should_bar
2012 Apr 09
8
Rails Functional Testing Problem
...run some functional tests on Rails. However I am coming up with the following error. RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id app/controllers/posts_controller.rb:11:in `create'' posts_controller_test.rb:5:in `test_should_create'' Here is my test file require File.dirname(__FILE__) + "/../test_helper" class PostsControllerTest < ActionController::TestCase def test_should_create post :create, :post => { :message => ''Sausage and Egg Sandwich''} end end Here is my controll...