aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-10-14 09:51:05 +0100
committerLouise Crow <louise.crow@gmail.com>2014-10-14 09:51:05 +0100
commit55e0b9f75160222d07773f38c8aa67aa9de1487e (patch)
tree5253e2e570c49b0c2f9b07027858c6f93798aae1 /spec/lib
parentc64360898beca1162a1bdef9ca4b76676e0907f8 (diff)
parent5e1517acfc7b2c46523ca0657d67bdf53299826b (diff)
Merge branch 'issues/222-category-editing-add-order-interface' into rails-3-develop
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/public_body_categories_spec.rb42
1 files changed, 0 insertions, 42 deletions
diff --git a/spec/lib/public_body_categories_spec.rb b/spec/lib/public_body_categories_spec.rb
deleted file mode 100644
index e53d9a028..000000000
--- a/spec/lib/public_body_categories_spec.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-
-describe PublicBodyCategories do
-
- before do
- load_test_categories
- end
-
- describe 'when asked for categories with headings' do
-
- it 'should return a list of headings as plain strings, each followed by n tag specifications as
- lists in the form:
- ["tag_to_use_as_category", "Sub category title", "Instance description"]' do
- expected_categories = ["Local and regional", ["local_council",
- "Local councils",
- "a local council"],
- "Miscellaneous", ["other",
- "Miscellaneous",
- "miscellaneous"]]
- PublicBodyCategories::get().with_headings().should == expected_categories
- end
-
- end
-
- describe 'when asked for headings' do
-
- it 'should return a list of headings' do
- PublicBodyCategories::get().headings().should == ['Local and regional', 'Miscellaneous']
- end
-
- end
-
- describe 'when asked for tags by headings' do
-
- it 'should return a hash of tags keyed by heading' do
- PublicBodyCategories::get().by_heading().should == {'Local and regional' => ['local_council'],
- 'Miscellaneous' => ['other']}
- end
-
- end
-
-end \ No newline at end of file