Skip to content

Commit

Permalink
Merge 2eabed5 into 2222ba9
Browse files Browse the repository at this point in the history
  • Loading branch information
bess authored Mar 14, 2018
2 parents 2222ba9 + 2eabed5 commit 6907966
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/hyrax/users/_user_info.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!-- User info intentionally suppressed -->
<dl id="user_info">

</dl>
1 change: 1 addition & 0 deletions spec/factories/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ppid { ActiveFedora::Noid::Service.new.mint }
uid { FFaker::Internet.user_name }
display_name { FFaker::Name.name }
email { FFaker::Internet.email }

transient do
# Allow for custom groups when a user is instantiated.
Expand Down
11 changes: 11 additions & 0 deletions spec/features/show_user_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'
include Warden::Test::Helpers

RSpec.feature 'show user profile' do
let(:user) { FactoryBot.create(:user) }

scenario "show user profile but not email address" do
visit("/users/#{user.user_key}")
expect(page).not_to have_content user.email
end
end

0 comments on commit 6907966

Please sign in to comment.