Skip to content

Instantly share code, notes, and snippets.

@ogredude
Created July 7, 2011 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogredude/1070533 to your computer and use it in GitHub Desktop.
Save ogredude/1070533 to your computer and use it in GitHub Desktop.
describe "PUT want" do
it "should add selected items to want list" do
item = Factory(:item)
expect {
put :want, :item_ids => [item.id]
}.to change(Want, :count).by(1)
response.should redirect_to(auction_house_auction_path(item.auction.auction_house.id, item.auction.id))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment