From e57d3672cd0d5c46e257f530d2f9d5bce848d528 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Thu, 29 Mar 2012 03:29:41 +0200 Subject: [PATCH] add rspec controller test --- spec/controllers/invitations_controller_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/controllers/invitations_controller_spec.rb b/spec/controllers/invitations_controller_spec.rb index 2f551c252..3a79fe379 100644 --- a/spec/controllers/invitations_controller_spec.rb +++ b/spec/controllers/invitations_controller_spec.rb @@ -41,6 +41,13 @@ describe InvitationsController do end end + describe '#email' do + it 'succeeds' do + get :email, :invitation_code => "anycode" + response.should be_success + end + end + describe '#new' do it 'renders' do sign_in :user, @user