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:
- 776 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe UserActionObserver do |
4 | dataset :users, :pages_with_layouts, :snippets |
5 | |
6 | before(:each) do |
7 | @user = users(:existing) |
8 | UserActionObserver.current_user = @user |
9 | end |
10 | |
11 | it 'should observe create' do |
12 | [ |
13 | User.create!(user_params), |
14 | Page.create!(page_params), |
15 | Layout.create!(layout_params), |
16 | Snippet.create!(snippet_params) |
17 | ].each do |model| |
18 | model.created_by.should == @user |
19 | end |
20 | end |
21 | |
22 | it 'should observe update' do |
23 | [ |
24 | users(:existing), |
25 | pages(:home), |
26 | layouts(:main), |
27 | snippets(:first) |
28 | ].each do |model| |
29 | model.attributes = model.attributes.dup |
30 | model.save.should == true |
31 | model.updated_by.should == @user |
32 | end |
33 | end |
34 | end |