Sha256: be54cae77b4cc5782a1925b51a8a00c16a2fd865bba6e76353ea40e55d7407ae

Contents?: true

Size: 522 Bytes

Versions: 10

Compression:

Stored size: 522 Bytes

Contents

require 'rails_helper'

module BootstrapLeather
  RSpec.describe ThumbnailsHelper, folder: :helpers do
    describe '#thumbnail' do
      subject do
        helper.thumbnail image_tag '/assets/logo.svg'
      end
      it 'shows a thumbnail' do
        expect(subject).to(
          have_tag('ul', with: { class: 'thumbnails' }) do
            with_tag 'li', with: { class: 'thumbnail' } do
              with_tag 'img', with: { src: '/assets/logo.svg' }
            end
          end
        )
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_leather-0.10.14 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.13 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.11 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.10 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.9 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.8 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.7 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.6 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.5 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb
bootstrap_leather-0.10.4 spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb