debian-mirror-gitlab/spec/presenters/user_presenter_spec.rb
2021-06-08 01:23:25 +05:30

18 lines
390 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe UserPresenter do
let_it_be(:user) { create(:user) }
subject(:presenter) { described_class.new(user) }
describe '#web_path' do
it { expect(presenter.web_path).to eq("/#{user.username}") }
end
describe '#web_url' do
it { expect(presenter.web_url).to eq("http://localhost/#{user.username}") }
end
end