Created
August 2, 2012 19:47
-
-
Save mangantj/3240050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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