gitlab-org--gitlab-foss/spec/helpers/users_helper_spec.rb
Toon Claes 0759db802f Move user_link to generic UsersHelper
Make the user_link helper more generic to be used for objects other
than pipelines.
2017-03-23 22:21:00 +01:00

17 lines
372 B
Ruby

require 'rails_helper'
describe UsersHelper do
let(:user) { create(:user) }
describe '#user_link' do
subject { helper.user_link(user) }
it "links to the user's profile" do
is_expected.to include("href=\"#{user_path(user)}\"")
end
it "has the user's email as title" do
is_expected.to include("title=\"#{user.email}\"")
end
end
end