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-base-1.1.4 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.4 base/spec/controllers/invitations_controller_spec.rb
social_stream-1.1.3 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.3 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.2 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.2 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.1 spec/controllers/invitations_controller_spec.rb
social_stream-1.1.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.1.0 spec/controllers/invitations_controller_spec.rb
social_stream-1.0.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-1.0.0 spec/controllers/invitations_controller_spec.rb
social_stream-0.30.2 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.24.2 spec/controllers/invitations_controller_spec.rb
social_stream-0.30.1 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.24.1 spec/controllers/invitations_controller_spec.rb
social_stream-0.30.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.24.0 spec/controllers/invitations_controller_spec.rb
social_stream-0.29.0 base/spec/controllers/invitations_controller_spec.rb
social_stream-base-0.23.0 spec/controllers/invitations_controller_spec.rb