Changeset 215

Show
Ignore:
Timestamp:
04/22/08 04:40:49 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Access denied specs.
Preparing views specs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/picolena/templates/spec/controllers/application_controller_spec.rb

    r81 r215  
    22 
    33describe ApplicationController do 
    4   it "should give 403 when denying access" do 
     4  it "should give 403 status when denying access" do 
    55    get 'access_denied' 
    66    response.headers["Status"].should == "403 Forbidden" 
    77  end 
    88   
    9   it "should flash with a wrong request" do 
     9  it "should render 'Access denied' text when denying access" do 
     10    get 'access_denied' 
     11    response.body.should == 'Access denied' 
     12  end 
     13   
     14  it "should flash a warning if given a wrong request" do 
    1015    get 'unknown_request' 
    1116    response.should be_redirect