Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392692
quoted_paths_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Subscribers
None
quoted_paths_spec.rb
View Options
require
'spec_helper_acceptance'
describe
'quoted paths'
do
before
(
:all
)
do
@basedir
=
setup_test_directory
end
describe
'with path with blanks'
do
let
(
:pp
)
do
<<-
MANIFEST
file { '#{@basedir}/concat test':
ensure => directory,
}
concat { '#{@basedir}/concat test/foo':
}
concat::fragment { '1':
target => '#{@basedir}/concat test/foo',
content => 'string1',
}
concat::fragment { '2':
target => '#{@basedir}/concat test/foo',
content => 'string2',
}
MANIFEST
end
it
'applies the manifest twice with no stderr'
do
idempotent_apply
(
pp
)
expect
(
file
(
"
#{
@basedir
}
/concat test/foo"
))
.
to
be_file
expect
(
file
(
"
#{
@basedir
}
/concat test/foo"
)
.
content
)
.
to
match
%r{string1string2}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:01 PM (10 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398915
Attached To
rSPCAT puppet-puppetlabs-concat
Event Timeline
Log In to Comment