Sha256: 6d02f543641c7f80f8fc0d77d9ad92c46439da0efe0add92bdfc29e05bf13b11

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Planter::FileList do
  describe '#initialize' do
    it 'initializes with an empty list' do
      Planter.base_dir = File.expand_path('spec')
      Planter.variables = { project: 'Untitled', script: 'Script', title: 'Title' }
      Planter.template = 'test'
      filelist = described_class.new
      expect(filelist.files).not_to eq([])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
planter-cli-3.0.7 spec/planter/filelist_spec.rb
planter-cli-3.0.5 spec/planter/filelist_spec.rb