diff options
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index bd403dcd1..8fb263f7d 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -13,17 +13,6 @@ describe PublicBody, " when saving" do @public_body.name = "Testing Public Body" @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 - - it "should not save with misformatted complaint email" do - @public_body.name = "Testing Public Body" - @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) @@ -33,7 +22,6 @@ describe PublicBody, " when saving" do @public_body.name = "Testing Public Body" @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! |