Sha256: 1c254ccb66b50a7ae02763b67110c6930ccd5ab4966d7f84e7ca7778108acb4d
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. require_relative "../../spec_helper" describe Alexandria::UI::SkipEntryDialog do let(:parent) { Gtk::Window.new :toplevel } it "works" do expect { described_class.new parent, "Foo" }.not_to raise_error end describe "continue?" do let(:instance) { described_class.new parent, "Foo" } let(:dialog) { instance.dialog } it "returns false when response is cancel" do allow(dialog).to receive(:run).and_return(Gtk::ResponseType::CANCEL) expect(instance.continue?).to be false end it "returns true when response is OK" do allow(dialog).to receive(:run).and_return(Gtk::ResponseType::OK) expect(instance.continue?).to be true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.10 | spec/alexandria/ui/skip_entry_dialog_spec.rb |