2 changed files with 2 additions and 2 deletions
@ -1,4 +1,4 @@ |
|||||||
module ItemLabelHelper |
module TitleHelper |
||||||
def format_label(count, item) |
def format_label(count, item) |
||||||
count > 1 ? item.pluralize : item |
count > 1 ? item.pluralize : item |
||||||
end |
end |
@ -1,6 +1,6 @@ |
|||||||
require "rails_helper" |
require "rails_helper" |
||||||
|
|
||||||
RSpec.describe ItemLabelHelper do |
RSpec.describe TitleHelper do |
||||||
describe "#format_label" do |
describe "#format_label" do |
||||||
let(:item) { "organisation" } |
let(:item) { "organisation" } |
||||||
it "returns singular when count is 1" do |
it "returns singular when count is 1" do |
Loading…
Reference in new issue