Sha256: a2994baf220b16d7077763b8cea96095c4ed39c5300c1952f4cf13d8e97f7b6d
Contents?: true
Size: 596 Bytes
Versions: 211
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' describe InvitationsController do render_views context "without authentication" do it "should redirect to login" do get :new response.should redirect_to(new_user_session_path) end end context "authenticated" do before do @user = Factory(:user) sign_in @user end it "should render new" do get :new response.should be_success end it "should send invitation" do post :create, :mails => "test@test.com, bla@bla.com", :message => "Testing" response.should be_success end end end
Version data entries
211 entries across 211 versions & 4 rubygems