aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-07-21 13:13:32 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-07-25 15:32:20 +0200
commit2a18ee45abf989b67ac868ee2fc2b81293a7e74a (patch)
treeccb9b94c2e88ded4621bc0d6846f4ce324d45399 /site/spec/models/agenda_spec.rb
parentImprove tests coverage (diff)
downloadcouncil-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.rb11
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