Sha256: f6f506638c2cbc3050c112d36c57152d62b1c86d421079145ce9d9e1995705db

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 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"

describe Alexandria::UI::NewBookDialog do
  let(:parent) { Gtk::Window.new :toplevel }
  let(:model) { Gtk::ListStore.new(String, String, GdkPixbuf::Pixbuf) }

  it "works" do
    described_class.new parent
  end

  it "can copy search results into result treeview" do
    results = [[an_artist_of_the_floating_world, "cover-url"]]
    dialog = described_class.new parent
    dialog.copy_results_to_treeview_model results, model
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.9 spec/alexandria/ui/new_book_dialog_spec.rb
alexandria-book-collection-manager-0.7.8 spec/alexandria/ui/new_book_dialog_spec.rb
alexandria-book-collection-manager-0.7.7 spec/alexandria/ui/new_book_dialog_spec.rb
alexandria-book-collection-manager-0.7.6 spec/alexandria/ui/new_book_dialog_spec.rb
alexandria-book-collection-manager-0.7.5 spec/alexandria/ui/new_book_dialog_spec.rb
alexandria-book-collection-manager-0.7.4 spec/alexandria/ui/new_book_dialog_spec.rb