diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-21 13:13:32 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-25 15:32:20 +0200 |
commit | 2a18ee45abf989b67ac868ee2fc2b81293a7e74a (patch) | |
tree | ccb9b94c2e88ded4621bc0d6846f4ce324d45399 /site/spec/models/agenda_spec.rb | |
parent | Improve tests coverage (diff) | |
download | council-webapp-2a18ee45abf989b67ac868ee2fc2b81293a7e74a.tar.gz council-webapp-2a18ee45abf989b67ac868ee2fc2b81293a7e74a.tar.bz2 council-webapp-2a18ee45abf989b67ac868ee2fc2b81293a7e74a.zip |
Add summary field
Diffstat (limited to 'site/spec/models/agenda_spec.rb')
-rw-r--r-- | site/spec/models/agenda_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/site/spec/models/agenda_spec.rb b/site/spec/models/agenda_spec.rb index f0dc747..00165d1 100644 --- a/site/spec/models/agenda_spec.rb +++ b/site/spec/models/agenda_spec.rb @@ -41,6 +41,17 @@ describe Agenda do end end + it 'should allow council memebers to change summaries of old meetings' do + a = Factory(:agenda, :state => 'old') + a.summary = 'changed' + + for u in users_factory(:council, :council_admin) + a.should be_editable_by(u) + a.should be_editable_by(u, :summary) + a.should be_updatable_by(u) + end + end + def test_migration(object, migration, prohibited, allowed, final_state) # object - object to migrate # migration - migration name |