Sha256: dafefce47eac010a4762e0671655c518a28539f5cc0723116fc9fce3b8db2e8b

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true
require 'rspectacular'
require 'chamber/commands/files'

module    Chamber
module    Commands
describe  Files do
  let(:rootpath) { ::File.expand_path('./spec/fixtures') }
  let(:options)  do
    {
      basepath: rootpath,
      rootpath: rootpath,
    }
  end

  it 'can return values formatted as environment variables' do
    files = Files.call(options)

    expect(files.size).to   eql     1
    expect(files.first).to  include 'spec/fixtures/settings.yml'
  end
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chamber-2.10.1 spec/lib/chamber/commands/files_spec.rb
chamber-2.10.0 spec/lib/chamber/commands/files_spec.rb
chamber-2.9.1 spec/lib/chamber/commands/files_spec.rb
chamber-2.9.0 spec/lib/chamber/commands/files_spec.rb