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