spec/plugins/os/centos/centos-plugin-spec.rb in boxgrinder-build-0.10.3 vs spec/plugins/os/centos/centos-plugin-spec.rb in boxgrinder-build-0.10.4

- old
+ new

@@ -15,11 +15,11 @@ # 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/plugins/os/centos/centos-plugin' -require 'hashery/opencascade' +require 'boxgrinder-core/astruct' module BoxGrinder describe CentOSPlugin do before(:each) do @config = mock('Config') @@ -28,10 +28,10 @@ plugins.stub!(:[]).with('centos').and_return({}) @config.stub!(:[]).with(:plugins).and_return(plugins) @appliance_config = mock('ApplianceConfig') - @appliance_config.stub!(:path).and_return(OpenCascade.new({:build => 'build/path'})) + @appliance_config.stub!(:path).and_return(AStruct.new({:build => 'build/path'})) @appliance_config.stub!(:name).and_return('full') @plugin = CentOSPlugin.new.init(@config, @appliance_config, {:class => BoxGrinder::CentOSPlugin, :type => :os, :name => :centos, :full_name => "CentOS", :versions => ["5"]}, :log => Logger.new('/dev/null')) end