Sha256: af9a8a10c2718bc420f3ec2148bd49c586bc6d114a297bfc97f1cdaa9e3321ec
Contents?: true
Size: 513 Bytes
Versions: 4
Compression:
Stored size: 513 Bytes
Contents
require File.expand_path('../spec_helper', File.dirname(__FILE__)) describe Tr8n::AwardsController do describe "guest user" do it "should be redirect to homepage" do get :index response.should redirect_to('/') end end describe "logged in user" do it "should redirect the guest user to homepage" do @user = User.create(:first_name => "Mike", :gender => "male") request.session[:user_id] = @user.id get :index response.should be_success end end end
Version data entries
4 entries across 4 versions & 1 rubygems