Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 15:28:59 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 20:04:52 +0300
commitc4cf7220146f74196ef20b12cf0db3502649ac06 (patch)
tree720b596fee3c9a1a4e02158932aa952bfd360b0b /spec/helpers/application_helper_spec.rb
parentc641dff09422522b7de651fc77292d89f137746b (diff)
Remove generic #avatar_icon helper.
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r--spec/helpers/application_helper_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index a1fcdeca10e..96bd4c96ae4 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -63,34 +63,6 @@ describe ApplicationHelper do
end
end
- describe 'avatar_icon' do
- let(:user) { create(:user, avatar: File.open(uploaded_image_temp_path)) }
-
- context 'using an email' do
- context 'when there is a matching user' do
- it 'returns a relative URL for the avatar' do
- expect(helper.avatar_icon(user.email).to_s)
- .to eq(user.avatar.url)
- end
- end
-
- context 'when no user exists for the email' do
- it 'calls gravatar_icon' do
- expect(helper).to receive(:gravatar_icon).with('foo@example.com', 20, 2)
-
- helper.avatar_icon('foo@example.com', 20, 2)
- end
- end
- end
-
- describe 'using a user' do
- it 'returns a relative URL for the avatar' do
- expect(helper.avatar_icon(user).to_s)
- .to eq(user.avatar.url)
- end
- end
- end
-
describe 'avatar_icon_for_email' do
let(:user) { create(:user, avatar: File.open(uploaded_image_temp_path)) }