Created
March 11, 2010 02:54
-
-
Save lxneng/328762 to your computer and use it in GitHub Desktop.
rspec, restful_authentication, and login_required
This file contains hidden or 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
before :each do | |
@current_user = mock_model(User, :id =>1) | |
controller.stub!(:current_user).and_return(@current_user) | |
controller.stub!(:login_required).and_return(:true) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment