Sha256: 67295cd3ada8a440255c22d7c8a8e0d57be42db27085128320d37a8ef3bf0382

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 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
    expect { described_class.new parent }.not_to raise_error
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.10 spec/alexandria/ui/new_book_dialog_spec.rb