Changeset 215
- Timestamp:
- 04/22/08 04:40:49 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/picolena/templates/spec/controllers/application_controller_spec.rb
r81 r215 2 2 3 3 describe ApplicationController do 4 it "should give 403 when denying access" do4 it "should give 403 status when denying access" do 5 5 get 'access_denied' 6 6 response.headers["Status"].should == "403 Forbidden" 7 7 end 8 8 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 10 15 get 'unknown_request' 11 16 response.should be_redirect
