```ruby
require File.dirname(__FILE__) + '/../spec_helper'

describe ApplicationController do
  it "should give 403 when denying access" do
    get 'access_denied'
    response.headers["Status"].should == "403 Forbidden"
  end
  
  it "should flash with a wrong request" do
    get 'unknown_request'
    response.should be_redirect
    response.should redirect_to(documents_url)
    flash[:warning].should == "Unknown URL"
  end
end```

Access denied specs. Preparing views specs.
user
```ruby
require File.dirname(__FILE__) + '/../spec_helper'

describe ApplicationController do
  it "should give 403 status when denying access" do
    get 'access_denied'
    response.headers["Status"].should == "403 Forbidden"
  end
  
  it "should render 'Access denied' text when denying access" do
    get 'access_denied'
    response.body.should == 'Access denied'
  end
  
  it "should flash a warning if given a wrong request" do
    get 'unknown_request'
    response.should be_redirect
    response.should redirect_to(documents_url)
    flash[:warning].should == "Unknown URL"
  end
end```
assistant