diff --git a/app/helpers/item_label_helper.rb b/app/helpers/title_helper.rb similarity index 93% rename from app/helpers/item_label_helper.rb rename to app/helpers/title_helper.rb index 0d0f67cf0..aebb97ebf 100644 --- a/app/helpers/item_label_helper.rb +++ b/app/helpers/title_helper.rb @@ -1,4 +1,4 @@ -module ItemLabelHelper +module TitleHelper def format_label(count, item) count > 1 ? item.pluralize : item end diff --git a/spec/helpers/item_label_helper_spec.rb b/spec/helpers/title_helper_spec.rb similarity index 98% rename from spec/helpers/item_label_helper_spec.rb rename to spec/helpers/title_helper_spec.rb index aad52a549..754e46144 100644 --- a/spec/helpers/item_label_helper_spec.rb +++ b/spec/helpers/title_helper_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -RSpec.describe ItemLabelHelper do +RSpec.describe TitleHelper do describe "#format_label" do let(:item) { "organisation" } it "returns singular when count is 1" do