Skip to content

Commit

Permalink
test fix and auth required on invitations index
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Bornsztein committed Sep 26, 2008
1 parent 761571c commit 641aa43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/invitations_controller.rb
@@ -1,5 +1,5 @@
class InvitationsController < BaseController
before_filter :require_current_user, :only => [:create, :edit, :update, :destroy]
before_filter :require_current_user, :only => [:create, :edit, :update, :destroy, :index]
# GET /invitations
# GET /invitations.xml
def index
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/messages_controller.rb
Expand Up @@ -17,7 +17,7 @@ def show
end

def new
@message = Message.new
@message = Message.new(params[:message])

if params[:reply_to]
@reply_to = @user.received_messages.find(params[:reply_to])
Expand Down
1 change: 1 addition & 0 deletions test/functional/invitations_controller_test.rb
Expand Up @@ -14,6 +14,7 @@ def setup
end

def test_should_get_index
login_as :quentin
get :index, :user_id => users(:quentin).id
assert_response :success
assert assigns(:invitations)
Expand Down

0 comments on commit 641aa43

Please sign in to comment.