aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-25 11:33:19 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-25 11:33:19 +1100
commita4d3ac7bca68805357c46ff865cc9a12e746ada8 (patch)
tree1ea1e0a708d41ad403e91cc71ceb56bfbf5d1d94 /spec/spec_helper.rb
parente1d21dbee78a8199a80d97f67508fa44cfc292e6 (diff)
Copied load_test_categories from rspec 2 to rspec 3 helper file
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 8343b8c22..75a5b5603 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -90,3 +90,11 @@ ensure
ActiveRecord::Base.default_timezone = old_zone
end
+def load_test_categories
+ PublicBodyCategories.add(:en, [
+ "Local and regional",
+ [ "local_council", "Local councils", "a local council" ],
+ "Miscellaneous",
+ [ "other", "Miscellaneous", "miscellaneous" ],])
+end
+