summaryrefslogtreecommitdiff
path: root/spec/features/profiles/user_visits_profile_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/profiles/user_visits_profile_spec.rb')
-rw-r--r--spec/features/profiles/user_visits_profile_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/profiles/user_visits_profile_spec.rb b/spec/features/profiles/user_visits_profile_spec.rb
index 475fda5e7a1..273d52996d3 100644
--- a/spec/features/profiles/user_visits_profile_spec.rb
+++ b/spec/features/profiles/user_visits_profile_spec.rb
@@ -21,6 +21,14 @@ RSpec.describe 'User visits their profile' do
expect(page).to have_content "This information will appear on your profile"
end
+ it 'shows user readme' do
+ create(:project, :repository, :public, path: user.username, namespace: user.namespace)
+
+ visit(user_path(user))
+
+ expect(find('.file-content')).to have_content('testme')
+ end
+
context 'when user has groups' do
let(:group) do
create :group do |group|