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:
- 741 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe Layout do |
4 | dataset :layouts |
5 | test_helper :validations |
6 | |
7 | before :each do |
8 | @layout = @model = Layout.new(layout_params) |
9 | end |
10 | |
11 | it 'should validate presence of' do |
12 | assert_valid :name, 'Just a Test' |
13 | assert_invalid :name, 'this must not be blank', nil, '', ' ' |
14 | end |
15 | |
16 | it 'should validate uniqueness of' do |
17 | assert_invalid :name, 'this name is already in use', 'Main' |
18 | assert_valid :name, 'Something Else' |
19 | end |
20 | |
21 | it 'should validate length of' do |
22 | { |
23 | :name => 100 |
24 | }.each do |field, max| |
25 | assert_invalid field, ('this must not be longer than %d characters' % max), 'x' * (max + 1) |
26 | assert_valid field, 'x' * max |
27 | end |
28 | end |
29 | end |