The problem was related to the use of the factory-generated instance,
in this case a parent with one child instance similar to Hartl's user/
micropost example, but different in that I require at least one child
instance to be present (in the has_many relationship).
I'm doing this in conjunction wi
Hi, any idea what could cause the following error in a controller
test?
"count should have been changed by 1, but was changed by 0"
I'm posting to a create route using a lambda, similar to Hartl's
example in his Rails tutorial:
it "should create a user" do
lambda do
post :create, :user =
Hi, any idea what could cause the following error in a controller
test?
"count should have been changed by 1, but was changed by 0"
I'm posting to a create route using a lambda, similar to Hartl's
example in his Rails tutorial:
it "should create a user" do
lambda do
post :create, :use