Commit 112f9517 authored by Serena Fang's avatar Serena Fang

Add spec for project bot name

parent ee11a0ee
......@@ -35,4 +35,12 @@ RSpec.describe API::Entities::User do
expect(subject[:bot]).to eq(true)
end
end
context 'with project bot user' do
let(:user) { create(:user, :project_bot) }
it 'does not expose project bot user name' do
expect(subject).not_to include(:name)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment