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)
208208 enc_path = File . join ( @tempdir , 'enc.sh' )
209209 File . open ( enc_path , 'w' ) do |f |
210210 f . write "#!/bin/sh\n "
211- f . write "cat <<-EOF\n "
211+ f . write "cat <<-' EOF' \n "
212212 f . write enc_obj . content
213213 f . write "\n EOF\n "
214214 end
Original file line number Diff line number Diff line change 796796 testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
797797 enc = File . join ( testobj . tempdir , 'enc.sh' )
798798 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 " )
800800 end
801801 end
802802
807807 testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
808808 enc = File . join ( testobj . tempdir , 'enc.sh' )
809809 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 " )
811811 end
812812 end
813813
818818 testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
819819 enc = File . join ( testobj . tempdir , 'enc.sh' )
820820 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 " )
822822 end
823823 end
824824
838838 testobj = OctocatalogDiff ::CatalogUtil ::BuildDir . new ( options , logger )
839839 enc = File . join ( testobj . tempdir , 'enc.sh' )
840840 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 " )
842842 end
843843 end
844844 end
You can’t perform that action at this time.
0 commit comments