Sha256: 6a53b8364e4add32bdc26913e9200d5fdbfe32e1b6d3756fde395869ebd3c8e0

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

# Copyright (C) 2007 Joseph Method
# Copyright (C) 2007 Cathal Mc Ginley
# Copyright (C) 2011, 2014-2016 Matijs van Zuijlen
#
# Alexandria is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Alexandria is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with Alexandria; see the file COPYING.  If not,
# write to the Free Software Foundation, Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301 USA.

require File.dirname(__FILE__) + '/../../spec_helper'

# break this up!

describe CellRendererToggle do
  it 'should work'
end

describe Gtk::ActionGroup do
  it 'should work'
end

describe Gtk::IconView do
  it 'should work'
end

describe Alexandria::UI::MainApp do
  it 'should be a singleton' do
    expect do
      Alexandria::UI::MainApp.new
    end.to raise_error NoMethodError
  end

  it 'runs' do
    @main_app = Alexandria::UI::MainApp.instance

    GLib::Timeout.add(100) do
      @main_app.main_app.destroy
      Gtk.main_quit
    end

    Gtk.main
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.0 spec/alexandria/ui/main_app_spec.rb