diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-10-31 19:15:03 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-31 19:15:03 +0300 |
commit | 6dc9028fbb3856c8c7814446ed176880f7d5213f (patch) | |
tree | b45870b8c946e5304a2fd3ad64a1453d166da0ca /spec/views | |
parent | 74a0e855e1d5049e265c85ac01d511c25f2a46f1 (diff) |
Load participants async
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/shared/issuable/_participants.html.haml.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/views/shared/issuable/_participants.html.haml.rb b/spec/views/shared/issuable/_participants.html.haml.rb deleted file mode 100644 index 51059d4c0d7..00000000000 --- a/spec/views/shared/issuable/_participants.html.haml.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' -require 'nokogiri' - -describe 'shared/issuable/_participants.html.haml' do - let(:project) { create(:project) } - let(:participants) { create_list(:user, 100) } - - before do - allow(view).to receive_messages(project: project, - participants: participants) - end - - it 'renders lazy loaded avatars' do - render 'shared/issuable/participants' - - html = Nokogiri::HTML(rendered) - - avatars = html.css('.participants-author img') - - avatars.each do |avatar| - expect(avatar[:class]).to include('lazy') - expect(avatar[:src]).to eql(LazyImageTagHelper.placeholder_image) - expect(avatar[:"data-src"]).to match('http://www.gravatar.com/avatar/') - end - end -end |