spec/models/popolo/post_spec.rb in popolo-0.0.1 vs spec/models/popolo/post_spec.rb in popolo-0.0.2
- old
+ new
@@ -1,5 +1,7 @@
require 'spec_helper'
describe Popolo::Post do
- it {should validate_presence_of :organization_id}
+ [:role, :organization_id].each do |attribute|
+ it {should validate_presence_of attribute}
+ end
end