Sha256: ceb8deca5a6990af249c5acf3d7160da3b5ea7ef86ea223345431910d39630f6

Contents?: true

Size: 569 Bytes

Versions: 7

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'

require 'cloud_shaped/function_methods'

describe CloudShaped::FunctionMethods do

  include described_class

  describe "#fn_base64" do

    it "is sugar for Fn::Base64" do
      output = fn_base64("stuff")
      expect(output).to eq(
        {
          "Fn::Base64" => "stuff"
        }
      )
    end

  end

  describe "#fn_join" do

    it "is sugar for Fn::Join" do
      lines = %w(a b c)
      output = fn_join(",", lines)
      expect(output).to eq(
        {
          "Fn::Join" => [",", lines]
        }
      )
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cloud_shaped-1.0.0 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.1.3 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.1.2 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.1.1 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.1.0 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.0.2 spec/cloud_shaped/function_methods_spec.rb
cloud_shaped-0.0.1 spec/cloud_shaped/function_methods_spec.rb