Renamed helpers to correspond to renamed Controller classes.
[merb_radiant.git] / radiant_specs / spec / models / .svn / text-base / file_not_found_page_spec.rb.svn-base
blob0781078cfbc847e53c7093a737e3835cbaa69a81
1 require File.dirname(__FILE__) + '/../spec_helper'
3 describe FileNotFoundPage do
4   scenario :file_not_found
5   test_helper :render
6   
7   before(:each) do
8     @page = pages(:file_not_found)
9   end
10   
11   it 'should have a working url tag' do
12     assert_renders '/gallery/asdf?param=4', '<r:attempted_url />', '/gallery/asdf?param=4'
13   end
15   it 'should correctly quote the url' do
16     assert_renders '/gallery/&lt;script&gt;alert(&quot;evil&quot;)&lt;/script&gt;', '<r:attempted_url />', '/gallery/<script>alert("evil")</script>'
17   end
18   
19   it 'should be a virtual page' do
20     @page.should be_virtual
21   end
22   
23   it 'should not be cached' do
24     @page.should_not be_cache
25   end
26   
27   it 'should have the correct headers' do
28     assert_headers({'Status' => '404 Not Found'}, '/gallery/asdf')
29   end
30   
31 end