Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
363 B

require "rails_helper"
RSpec.describe ItemLabelHelper do
let(:item) { "organisation" }
describe "#format_label" do
it "returns singular when count is 1" do
expect(format_label(1, item)).to eq("organisation")
end
it "returns plural when count greater than 1" do
expect(format_label(2, item)).to eq("organisations")
end
end
end