Files
grecia/spec/helpers/user_helper_spec.rb

14 lines
344 B
Ruby

require 'rails_helper'
describe UserHelper do
describe '#humanize_document_type' do
it "should return a humanized document type" do
expect(humanize_document_type("1")).to eq "Spanish ID"
expect(humanize_document_type("2")).to eq "Passport"
expect(humanize_document_type("3")).to eq "Residence card"
end
end
end