Sha256: d33552d853809a0bb3ec18d03ceda7acf6753af643293ca5de32231d042b1e84

Contents?: true

Size: 586 Bytes

Versions: 9

Compression:

Stored size: 586 Bytes

Contents

describe Forger::Template::Helper::CoreHelper do
  let(:thing) do
    thing = Class.new
    Forger::Template::Helper::CoreHelper.send :public, :normalize_user_data_name_input
    thing.extend(Forger::Template::Helper::CoreHelper)
    thing
  end

  it 'normalize user_data name input' do
    result = thing.normalize_user_data_name_input("ecs.sh")
    expect(result).to eq "ecs.sh"

    result = thing.normalize_user_data_name_input("ecs")
    expect(result).to eq "ecs.sh"

    result = thing.normalize_user_data_name_input("test/ecs")
    expect(result).to eq "test/ecs.sh"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
forger-3.0.2 spec/lib/core_helper_spec.rb
forger-3.0.1 spec/lib/core_helper_spec.rb
forger-3.0.0 spec/lib/core_helper_spec.rb
forger-2.0.5 spec/lib/core_helper_spec.rb
forger-2.0.4 spec/lib/core_helper_spec.rb
forger-2.0.3 spec/lib/core_helper_spec.rb
forger-2.0.2 spec/lib/core_helper_spec.rb
forger-2.0.1 spec/lib/core_helper_spec.rb
forger-2.0.0 spec/lib/core_helper_spec.rb