diff options
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index bb9b70682..bd403dcd1 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -14,6 +14,8 @@ describe PublicBody, " when saving" do @public_body.short_name = "TPB" @public_body.request_email = "requestBOOlocalhost" @public_body.complaint_email = "complaint@localhost" + @public_body.last_edit_editor = "*test*" + @public_body.last_edit_comment = "This is a test" lambda { @public_body.save! }.should raise_error(ActiveRecord::RecordInvalid) end @@ -22,6 +24,8 @@ describe PublicBody, " when saving" do @public_body.short_name = "TPB" @public_body.request_email = "request@localhost" @public_body.complaint_email = "complaintBOOlocalhost" + @public_body.last_edit_editor = "*test*" + @public_body.last_edit_comment = "This is a test" lambda { @public_body.save! }.should raise_error(ActiveRecord::RecordInvalid) end @@ -30,6 +34,8 @@ describe PublicBody, " when saving" do @public_body.short_name = "TPB" @public_body.request_email = "request@localhost" @public_body.complaint_email = "complaint@localhost" + @public_body.last_edit_editor = "*test*" + @public_body.last_edit_comment = "This is a test" @public_body.save! end end |