spec/alexandria/ui/ui_manager_spec.rb in alexandria-book-collection-manager-0.7.3 vs spec/alexandria/ui/ui_manager_spec.rb in alexandria-book-collection-manager-0.7.4
- old
+ new
@@ -1,28 +1,14 @@
# frozen_string_literal: true
-# Copyright (C) 2008 Joseph Method
-# Copyright (C) 2014 Matijs van Zuijlen
+# This file is part of Alexandria.
#
-# 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.
+# See the file README.md for authorship and licensing information.
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.dirname(__FILE__) + "/../../spec_helper"
describe Alexandria::UI::UIManager do
- it 'should work' do
- main_app = double(Object)
- Alexandria::UI::UIManager.new main_app
+ it "works" do
+ main_app = instance_double(Alexandria::UI::MainApp)
+ described_class.new main_app
end
end