File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/octocatalog-diff/catalog-util
spec/octocatalog-diff/tests/catalog-util Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def install_enc(logger)
208
208
enc_path = File . join ( @tempdir , 'enc.sh' )
209
209
File . open ( enc_path , 'w' ) do |f |
210
210
f . write "#!/bin/sh\n "
211
- f . write "cat <<-EOF\n "
211
+ f . write "cat <<-' EOF' \n "
212
212
f . write enc_obj . content
213
213
f . write "\n EOF\n "
214
214
end
Original file line number Diff line number Diff line change 796
796
testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
797
797
enc = File . join ( testobj . tempdir , 'enc.sh' )
798
798
expect ( File . file? ( enc ) ) . to eq ( true )
799
- expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-EOF\n ---\n \n EOF\n " )
799
+ expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-' EOF' \n ---\n \n EOF\n " )
800
800
end
801
801
end
802
802
807
807
testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
808
808
enc = File . join ( testobj . tempdir , 'enc.sh' )
809
809
expect ( File . file? ( enc ) ) . to eq ( true )
810
- expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-EOF\n ---\n \n EOF\n " )
810
+ expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-' EOF' \n ---\n \n EOF\n " )
811
811
end
812
812
end
813
813
818
818
testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
819
819
enc = File . join ( testobj . tempdir , 'enc.sh' )
820
820
expect ( File . file? ( enc ) ) . to eq ( true )
821
- expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-EOF\n ---\n \n EOF\n " )
821
+ expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-' EOF' \n ---\n \n EOF\n " )
822
822
end
823
823
end
824
824
838
838
testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
839
839
enc = File . join ( testobj . tempdir , 'enc.sh' )
840
840
expect ( File . file? ( enc ) ) . to eq ( true )
841
- expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-EOF\n ---\n classes:\n foo: {}\n parameters: {}\n \n EOF\n " )
841
+ expect ( File . read ( enc ) ) . to eq ( "#!/bin/sh\n cat <<-' EOF' \n ---\n classes:\n foo: {}\n parameters: {}\n \n EOF\n " )
842
842
end
843
843
end
844
844
end
You can’t perform that action at this time.
0 commit comments