diff options
| author | simon <simon@zagal.(none)> | 2009-02-12 00:02:39 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 20:22:17 +0100 |
| commit | f10e79a554bd0666de6390c4bc34b52c8ecd936d (patch) | |
| tree | 29c19fe5cbfa8ad8d4ee08639ad9689c8268c60c /test | |
| parent | b700b1315afa9b77104cf30ca1aff0c4a33b029d (diff) | |
* removed the auditing observer, we'll do it the old fashioned way
* added permission model
* locked down attributes on page model
Diffstat (limited to 'test')
| -rw-r--r-- | test/fixtures/permissions.yml | 7 | ||||
| -rw-r--r-- | test/unit/permission_test.rb | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/fixtures/permissions.yml b/test/fixtures/permissions.yml new file mode 100644 index 0000000..5bf0293 --- /dev/null +++ b/test/fixtures/permissions.yml | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
| 2 | |||
| 3 | # one: | ||
| 4 | # column: value | ||
| 5 | # | ||
| 6 | # two: | ||
| 7 | # column: value | ||
diff --git a/test/unit/permission_test.rb b/test/unit/permission_test.rb new file mode 100644 index 0000000..08fcc0b --- /dev/null +++ b/test/unit/permission_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class PermissionTest < ActiveSupport::TestCase | ||
| 4 | # Replace this with your real tests. | ||
| 5 | test "the truth" do | ||
| 6 | assert true | ||
| 7 | end | ||
| 8 | end | ||
