Skip to content

Instantly share code, notes, and snippets.

@zishe
Created September 18, 2012 17:25
Show Gist options
  • Save zishe/3744451 to your computer and use it in GitHub Desktop.
Save zishe/3744451 to your computer and use it in GitHub Desktop.
Test
before(:each) do
@user = User.new
end
it "should have a secure_token" do
@user.should_receive(:secure_token)
@user.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment