aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2014-08-22 16:28:53 +0100
committerSteven Day <steve@mysociety.org>2014-08-22 16:31:03 +0100
commit336e442e58e1739361c6db3e7df66b6ee7e23ca4 (patch)
tree8f197a2c75df9152b6c2763e8a1c4b8abc6b63d8
parent3803bfc95c380c85ff523681e2099af5a11e16c4 (diff)
Fix test failures in PublicBody overrideable CSV import specs
-rw-r--r--spec/models/public_body_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 2ee45836b..225958cac 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -562,7 +562,7 @@ CSV
end
it 'allows you to override the default list of fields to import' do
- old_csv_import_fields = PublicBody.csv_import_fields
+ old_csv_import_fields = PublicBody.csv_import_fields.clone
expected_fields = [
['name', '(i18n)<strong>Existing records cannot be renamed</strong>'],
['short_name', '(i18n)'],
@@ -577,7 +577,7 @@ CSV
end
it 'allows you to append to the default list of fields to import' do
- old_csv_import_fields = PublicBody.csv_import_fields
+ old_csv_import_fields = PublicBody.csv_import_fields.clone
expected_fields = [
['name', '(i18n)<strong>Existing records cannot be renamed</strong>'],
['short_name', '(i18n)'],