diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-25 11:33:19 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-25 11:33:19 +1100 |
commit | a4d3ac7bca68805357c46ff865cc9a12e746ada8 (patch) | |
tree | 1ea1e0a708d41ad403e91cc71ceb56bfbf5d1d94 | |
parent | e1d21dbee78a8199a80d97f67508fa44cfc292e6 (diff) |
Copied load_test_categories from rspec 2 to rspec 3 helper file
-rw-r--r-- | spec/spec_helper.rb | 8 |
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 + |