Sha256: 9498d2ee33e5c67bc2b0677562b60fd97e7bf2f76cf80226415b3b0980192600
Contents?: true
Size: 794 Bytes
Versions: 4
Compression:
Stored size: 794 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::NewProviderDialog do let(:parent) { Gtk::Window.new :toplevel } it "can be instantiated" do described_class.new parent end describe "#acquire" do let(:provider_dialog) { described_class.new parent } let(:gtk_dialog) { provider_dialog.dialog } it "works when response is cancel" do allow(gtk_dialog).to receive(:run).and_return(Gtk::ResponseType::CANCEL) provider_dialog.acquire end it "works when response is accept" do allow(gtk_dialog).to receive(:run).and_return(Gtk::ResponseType::ACCEPT) provider_dialog.acquire end end end
Version data entries
4 entries across 4 versions & 1 rubygems