aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-17 10:48:46 +0000
committerfrancis <francis>2008-03-17 10:48:46 +0000
commit806e617133f0125ad2534e48d0abdd0891824b6f (patch)
treed5e0582cd4acefd8be8308af9fc235c8d8437093 /spec/models
parent3a07cc3dbc25f56bba191b4607fb1fa8f64a63ca (diff)
Remove complaint_email field as we were never filling it in or using it. There are more important things.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/public_body_spec.rb12
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!