From a4d3ac7bca68805357c46ff865cc9a12e746ada8 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 25 Jan 2013 11:33:19 +1100 Subject: Copied load_test_categories from rspec 2 to rspec 3 helper file --- spec/spec_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/spec_helper.rb') 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 + -- cgit v1.2.3