spec/kumogata_convert_spec.rb in kumogata-0.1.9 vs spec/kumogata_convert_spec.rb in kumogata-0.2.0

- old
+ new

@@ -92,11 +92,11 @@ end end EOS end - it 'convert Ruby template to JSON template with _join()' do + it 'convert Ruby template to JSON template with fn_join()' do template = <<-TEMPLATE Parameters do Password do NoEcho true Type "String" @@ -109,11 +109,11 @@ Properties do ImageId "ami-XXXXXXXX" InstanceType "t1.micro" UserData do - Fn__Base64 _join(<<-EOS) + Fn__Base64 (<<-EOS).fn_join #!/bin/bash echo START | logger /opt/aws/bin/cfn-init -s <%= Ref "AWS::StackName" %> -r myEC2Instance --region <%= Ref "AWS::Region" %> echo END | logger EOS @@ -137,11 +137,11 @@ end end commands do any_name do - command _join(<<-EOS) + command (<<-EOS).fn_join echo <%= Ref "Password" %> > /tmp/my-password EOS end end @@ -231,11 +231,11 @@ } } EOS end - it 'convert Ruby template to JSON template with _user_data()' do + it 'convert Ruby template to JSON template with converting user_data' do template = <<-TEMPLATE Parameters do Password do NoEcho true Type "String" @@ -302,11 +302,11 @@ Properties do ImageId "ami-XXXXXXXX" InstanceType "t1.micro" UserData do - Fn__Base64 _join(<<-EOS) + Fn__Base64 (<<-EOS).fn_join #!/bin/bash echo START | logger /opt/aws/bin/cfn-init -s <%= Ref "AWS::StackName" %> -r #{resource_name} --region <%= Ref "AWS::Region" %> echo END | logger EOS @@ -330,10 +330,10 @@ end end commands do any_name do - command _join(<<-EOS) + command (<<-EOS).fn_join echo <%= Ref "Password" %> > /tmp/my-password EOS end end