Sha256: 12a61a82c9ee5085a8488e81e1a291417daeadc12697a486af73e9d6e2be5726

Contents?: true

Size: 419 Bytes

Versions: 5

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.config = 'test'
      filelist = Planter::FileList.new
      expect(filelist.files).not_to eq([])
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
planter-cli-3.0.4 spec/planter/filelist_spec.rb
planter-cli-3.0.3 spec/planter/filelist_spec.rb
planter-cli-3.0.2 spec/planter/filelist_spec.rb
planter-cli-3.0.1 spec/planter/filelist_spec.rb
planter-cli-0.0.4 spec/planter/filelist_spec.rb