spec/appliance-spec.rb in boxgrinder-build-0.6.0 vs spec/appliance-spec.rb in boxgrinder-build-0.6.1
- old
+ new
@@ -1,5 +1,23 @@
+#
+# Copyright 2010 Red Hat, Inc.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 3 of
+# the License, or (at your option) any later version.
+#
+# This software 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+
require 'boxgrinder-build/appliance'
require 'rspec/rspec-config-helper'
require 'ostruct'
module BoxGrinder
@@ -178,10 +196,10 @@
@appliance.should_receive( :execute_os_plugin ).and_return( { :abc => 'def'} )
@appliance.should_receive( :execute_platform_plugin ).with( { :abc => 'def'} ).and_return( { :def => 'ghi'} )
delivery_plugin = mock('S3 Plugin')
delivery_plugin.should_receive(:init)
- delivery_plugin.should_receive(:run).with(no_args())
+ delivery_plugin.should_receive(:run).with( :same )
@plugin_manager.should_receive(:plugins).and_return( { :delivery => "something" } )
@plugin_manager.should_receive(:initialize_plugin).with(:delivery, :same).and_return([ delivery_plugin, {:class => Appliance, :type => :delivery, :name => :same, :full_name => "A plugin"} ] )
@appliance.execute_plugin_chain