Sha256: 51f839e5a619867b5a00bf68cfb13adde2710efc8e88669c42692bdf684c5805
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
require 'spec_helper' describe RubberRing::SessionsController do it 'should display login page' do get :new response.should be_success end it 'should not login without a passowrd' do post :create response.code.should == '200' # no password, no login end it 'should login with correct password' do post :create, :password => RubberRing.admin_password response.should redirect_to root_path end it 'should log out' do get :destroy response.should redirect_to root_path end end
Version data entries
4 entries across 4 versions & 1 rubygems