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-2.2.2 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.2.2 spec/controllers/invitations_controller_spec.rb
social_stream-2.2.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.2.1 spec/controllers/invitations_controller_spec.rb
social_stream-2.2.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.2.0 spec/controllers/invitations_controller_spec.rb
social_stream-2.1.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-1.1.12 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.11 spec/controllers/invitations_controller_spec.rb
social_stream-2.1.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.1.0 spec/controllers/invitations_controller_spec.rb
social_stream-2.0.4 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.0.4 spec/controllers/invitations_controller_spec.rb
social_stream-2.0.3 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-2.0.3 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.11 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.10 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.10 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.9 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.9 base/spec/controllers/invitations_controller_spec.rb