Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 767 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe FileNotFoundPage do |
4 | dataset :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 |
14 | |
15 | it 'should correctly quote the url' do |
16 | assert_renders '/gallery/<script>alert("evil")</script>', '<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 return a 404 status code' do |
28 | @page.response_code.should == 404 |
29 | end |
30 | |
31 | end |