summaryrefslogtreecommitdiffstats
path: root/spec/unit/type/file_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/type/file_spec.rb')
-rwxr-xr-xspec/unit/type/file_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/type/file_spec.rb b/spec/unit/type/file_spec.rb
index 010b59f78..24141a9ef 100755
--- a/spec/unit/type/file_spec.rb
+++ b/spec/unit/type/file_spec.rb
@@ -305,9 +305,8 @@ describe Puppet::Type.type(:file) do
file[:path].should == "X:/"
end
- it "should add a slash to a drive letter", :'fails_on_windows' => true, :'fails_on_ruby_1.9.2' => true do
- file = Puppet::Type::File.new(:path => "X:")
- file[:path].should == "X:/"
+ it "should not accept a drive letter without a slash", :'fails_on_ruby_1.9.2' => true do
+ lambda { Puppet::Type::File.new(:path => "X:") }.should raise_error(/File paths must be fully qualified/)
end
end