I'm working with a REST approach with rails and I'm not using the notation assign "@user" inside the controllers.
Example of my controller:
def create
user = User.new
user.star = true
user.save
...
end
For a classic rails app this the solution:
expect(assigns(:user).star).to be_present
But unlike the use of @, I need to access the user
How can I achieve that? Thanks!