Sha256: becf7392ddb613e2a4a60c2bdb7a61d3fa9020091edf15cc4464fd5cd7d11249

Contents?: true

Size: 531 Bytes

Versions: 20

Compression:

Stored size: 531 Bytes

Contents

require 'spec_helper'

describe EventsController do
  render_views

  context "public calendar" do
    context "when Anonymous" do
      it "should render index" do
        get :index

        response.should redirect_to(new_user_session_path)
      end
    end
  end

  context "user's calendar" do
    before do
      @user = Factory(:user)
    end

    describe "when Anonymous" do
      it "should render to login" do
        get :index, user_id: @user.to_param

        response.should be_success
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
social_stream-2.2.2 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.2.1 spec/controllers/events_controller_spec.rb
social_stream-2.2.1 events/spec/controllers/events_controller_spec.rb
social_stream-2.2.0 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.2.0 spec/controllers/events_controller_spec.rb
social_stream-2.1.1 events/spec/controllers/events_controller_spec.rb
social_stream-2.1.0 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.1.0 spec/controllers/events_controller_spec.rb
social_stream-2.0.4 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.0.2 spec/controllers/events_controller_spec.rb
social_stream-2.0.3 events/spec/controllers/events_controller_spec.rb
social_stream-2.0.2 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.0.1 spec/controllers/events_controller_spec.rb
social_stream-2.0.1 events/spec/controllers/events_controller_spec.rb
social_stream-2.0.0 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.0.0 spec/controllers/events_controller_spec.rb
social_stream-2.0.0.beta3 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.0.0.beta3 spec/controllers/events_controller_spec.rb
social_stream-2.0.0.beta2 events/spec/controllers/events_controller_spec.rb
social_stream-events-2.0.0.beta2 spec/controllers/events_controller_spec.rb