Sha256: 17cade13efee150eefde65d356a2328ec8576799f7475f81d319e98232e0b60a

Contents?: true

Size: 693 Bytes

Versions: 5

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

# This file is part of Alexandria.
#
# See the file README.md for authorship and licensing information.

require "spec_helper"

RSpec.describe Alexandria::UI::Icons do
  describe ".tag_icon" do
    let(:loader) { Alexandria::LibraryStore.new(TESTDIR) }
    let(:lib_version) { File.join(LIBDIR, "0.6.2") }

    before do
      FileUtils.cp_r(lib_version, TESTDIR)
    end

    it "returns a pixbuf" do
      library = loader.load_all_libraries.first
      icon = described_class.cover(library, library.first)

      tagged_icon = described_class.tag_icon(icon, described_class::FAVORITE_TAG)
      expect(tagged_icon).to be_a GdkPixbuf::Pixbuf
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.10 spec/alexandria/ui/icons_spec.rb
alexandria-book-collection-manager-0.7.9 spec/alexandria/ui/icons_spec.rb
alexandria-book-collection-manager-0.7.8 spec/alexandria/ui/icons_spec.rb
alexandria-book-collection-manager-0.7.7 spec/alexandria/ui/icons_spec.rb
alexandria-book-collection-manager-0.7.6 spec/alexandria/ui/icons_spec.rb