spec/helpers/linux-helper-spec.rb in boxgrinder-build-0.9.6 vs spec/helpers/linux-helper-spec.rb in boxgrinder-build-0.9.7
- old
+ new
@@ -74,9 +74,14 @@
it "should return ['/', '/home', 'swap']" do
hash = {'swap' => {"size" => 1}, "/"=>{"size"=>2, "type"=>"ext3"}, "/home"=>{"size"=>2, "type"=>"ext3"}}
@helper.partition_mount_points(hash).should == ['/', '/home', 'swap']
end
+ it "should return ['/', '/boot', '/home', 'swap']" do
+ hash = {'swap' => {"size" => 1}, "/boot" => {"size" => 0.1}, "/"=>{"size"=>2, "type"=>"ext3"}, "/home"=>{"size"=>2, "type"=>"ext3"}}
+ @helper.partition_mount_points(hash).should == ['/', '/boot', '/home', 'swap']
+ end
+
it "should return ['/', '/ubrc', '/tmp-config', '/tmp-eventlog']" do
hash = {"/tmp-eventlog"=>{"size"=>0.01, "type"=>"ext3"}, "/"=>{"size"=>2, "type"=>"ext3"}, "/ubrc"=>{"size"=>0.02, "type"=>"ext3"}, "/tmp-config"=>{"size"=>0.26}}
@helper.partition_mount_points(hash).should == ["/", "/ubrc", "/tmp-config", "/tmp-eventlog"]
end