Skip to content

Instantly share code, notes, and snippets.

@mangantj
Created August 2, 2012 19:47
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 mangantj/3240050 to your computer and use it in GitHub Desktop.
Save mangantj/3240050 to your computer and use it in GitHub Desktop.
let(:task1) { create(:task, :user => @u) }
let(:do_action) { delete :destroy, :id => task1.id }
it "should find the task" do
do_action
assigns[:task].should eq(task1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment