public
Created

Stubbing Active Orders

  • Download Gist
stubbing_active_orders_2.rb
Ruby
1 2 3
order = ...
stub(UserSession).current_user {user}
stub(Order).active_orders(user){[order]}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.