diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-07 11:31:12 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-07 11:31:12 +0100 |
commit | b0fa981819247f5e749f8837e07568fbcd5eab43 (patch) | |
tree | 135b53170cd298123a7327c0aeee3ac7cb01b27b /spec/helpers | |
parent | 7d2487bbc816a674817f3811d4b8f87072c72632 (diff) |
Fix failure to capitalise when non category tag precedes categories.
Thanks to @RichardTaylor for reporting.
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/public_body_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/public_body_helper_spec.rb b/spec/helpers/public_body_helper_spec.rb index 0bf55abb4..d4f3acf78 100644 --- a/spec/helpers/public_body_helper_spec.rb +++ b/spec/helpers/public_body_helper_spec.rb @@ -74,7 +74,7 @@ describe PublicBodyHelper do :description => "spec category #{i}") heading.add_category(category) end - public_body = FactoryGirl.create(:public_body, :tag_string => 'spec_0 spec_2 unknown') + public_body = FactoryGirl.create(:public_body, :tag_string => 'unknown spec_0 spec_2') expected = '<a href="/body/list/spec_0">Spec category 0</a> and <a href="/body/list/spec_2">spec category 2</a>' expect(type_of_authority(public_body)).to eq(expected) end |