aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/fixtures/public_bodies.yml2
-rw-r--r--spec/fixtures/public_body_versions.yml1
-rw-r--r--spec/models/public_body_spec.rb12
3 files changed, 0 insertions, 15 deletions
diff --git a/spec/fixtures/public_bodies.yml b/spec/fixtures/public_bodies.yml
index 5a0facec9..88c19484b 100644
--- a/spec/fixtures/public_bodies.yml
+++ b/spec/fixtures/public_bodies.yml
@@ -2,7 +2,6 @@ geraldine_public_body:
name: The Geraldine Quango
updated_at: 2007-10-24 10:51:01.161639
last_edit_comment: Mark named this stupid quango.
- complaint_email: geraldine-complaints@localhost
request_email: geraldine-requests@localhost
id: "2"
version: "1"
@@ -14,7 +13,6 @@ humpadink_public_body:
name: "Department for Humpadinking"
updated_at: 2007-10-25 10:51:01.161639
last_edit_comment: Not sure what this new department does.
- complaint_email: humpadink-complaints@localhost
request_email: humpadink-requests@localhost
id: "3"
version: "2"
diff --git a/spec/fixtures/public_body_versions.yml b/spec/fixtures/public_body_versions.yml
index d8bc6ea35..57c7757d5 100644
--- a/spec/fixtures/public_body_versions.yml
+++ b/spec/fixtures/public_body_versions.yml
@@ -2,7 +2,6 @@ humpadink_public_body_old1:
name: "Department for Humpadinking"
last_edit_comment: "Silly old abbrv"
updated_at: 2007-10-13 12:08:23.836085
- complaint_email: humpadink-complaints@localhost
request_email: humpadink-requests@localhost
public_body_id: "3"
id: "5"
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!