Sha256: ad326802bad7f7645e79e162dcafa3b5ebe154c2fd63d57db2315a1853b748bc
Contents?: true
Size: 684 Bytes
Versions: 1
Compression:
Stored size: 684 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::ErrorDialog do let(:parent) { Gtk::Window.new :toplevel } it "works" do expect { described_class.new parent, "Boom", "It went boom" }.not_to raise_error end describe "display" do let(:instance) { described_class.new parent, "Boom", "It went boom" } let(:dialog) { instance.dialog } it "works when response is OK" do allow(dialog).to receive(:run).and_return(Gtk::ResponseType::OK) expect { instance.display }.not_to raise_error 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/error_dialog_spec.rb |