Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1. assert_difference "List.count" do
  2.     assert_difference "ListItem.count" do
  3.         post list_path, params: { list: {
  4.                                   name: "List",
  5.                                   list_item_attributes: {
  6.                                   list_item: { user_item_id: user_items(:milk).id,
  7.                                                list_id: lists(:one).id,
  8.                                                quantity: 3 } } } }
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement