You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think about using RR instead of default rspec mocks?
I see that you wrote a lot of specs using rspec mocks. But RR looks simpler and faster. It is just idea, of course: maybe you already had discussion and i just meddle in other people's business:]
I can rewrite specs if you approve this idea.
The text was updated successfully, but these errors were encountered:
User.find_or_create_with_oauth will be called and process and rspec also check it. I.e. if you want to mock method and you also need to really process the method.
Look: view#render will be processed and you can use rspec matchers in mock
Also it supports a mocks with checking attributes:
Just look this gem https://github.com/btakita/rr
We are using it in gettaxi.com and it is very cool.
What do you think about using RR instead of default rspec mocks?
I see that you wrote a lot of specs using rspec mocks. But RR looks simpler and faster. It is just idea, of course: maybe you already had discussion and i just meddle in other people's business:]
I can rewrite specs if you approve this idea.
The text was updated successfully, but these errors were encountered: