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

Version Path
social_stream-0.28.4 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.22.4 spec/controllers/invitations_controller_spec.rb
social_stream-0.28.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.22.1 spec/controllers/invitations_controller_spec.rb
social_stream-0.28.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.22.0 spec/controllers/invitations_controller_spec.rb
social_stream-0.27.3 base/spec/controllers/invitations_controller_spec.rb
social_stream-0.27.2 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.21.2 spec/controllers/invitations_controller_spec.rb
social_stream-0.27.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.21.1 spec/controllers/invitations_controller_spec.rb
social_stream-0.27.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.21.0 spec/controllers/invitations_controller_spec.rb
social_stream-0.26.2 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.20.2 spec/controllers/invitations_controller_spec.rb
social_stream-0.26.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.20.1 spec/controllers/invitations_controller_spec.rb
social_stream-0.26.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.20.0 spec/controllers/invitations_controller_spec.rb
social_stream-0.25.2 base/spec/controllers/invitations_controller_spec.rb