You can't say User.new(:id=>27) as ActiveRecord prevents :id from being
mass-assigned like that (in the case of an action that does
User.new(params[:user]) in the controller, people would be able to set the
id through the POST data). Try User.new.tap {|u| u.id = 27 } instead.
-- Elliot
On Fri, De
Hi,
I'm an absolute beginner with RSpec, so I apologize if this question doesn't
make sense.
I'm using RSpec 2, Rails 3. I have a @current_user instance variable that I
can access in my controller. I have a controller called
PlanOrderController. In the create action of this model, I would like