Guys,
I’ve got an RSpec test that for the life of me I can’t get to work. I
was hoping somebody could take a quick peek and let me know if they
see something wrong here:
Here is my code: output · GitHub
Can anybody help me out here, I don’t understand what RSpec is trying
to tell me.
Thanks,
Joe
On May 31, 2010, at 7:41 AM, Joseph DelCioppio wrote:
Guys,
I’ve got an RSpec test that for the life of me I can’t get to work. I
was hoping somebody could take a quick peek and let me know if they
see something wrong here:
Here is my code: output · GitHub
Can anybody help me out here, I don’t understand what RSpec is trying
to tell me.
Line 14 stubs with(@user.id.to_s), but line 20 passes @user.id. Try
using the same in both cases.
HTH,
David
David,
Thank you, this did in fact fix it, I guess I don’t understand the
‘get’ method anymore, since I thought that it would behave the same
way a normal request would and parameterize @user.id. I feel this way
because in Rails 2.3.5 I used the same methodology as I was here and
it worked correctly.
I wish I could figure out a better way to debug Ruby so that I might
be able to answer these questions myself.
Joe