spec/alexandria/ui/main_app_spec.rb in alexandria-book-collection-manager-0.6.9 vs spec/alexandria/ui/main_app_spec.rb in alexandria-book-collection-manager-0.7.0
- old
+ new
@@ -1,8 +1,8 @@
# Copyright (C) 2007 Joseph Method
# Copyright (C) 2007 Cathal Mc Ginley
-# Copyright (C) 2011, 2014, 2015 Matijs van Zuijlen
+# 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.
@@ -35,16 +35,16 @@
describe Alexandria::UI::MainApp do
it 'should be a singleton' do
expect do
Alexandria::UI::MainApp.new
- end.to raise_error
+ end.to raise_error NoMethodError
end
it 'runs' do
@main_app = Alexandria::UI::MainApp.instance
- Gtk.timeout_add(100) do
+ GLib::Timeout.add(100) do
@main_app.main_app.destroy
Gtk.main_quit
end
Gtk.main