Sha256: 37c7f38b2888ec07c18c8c716a71c8525f8c0474a746cef174fe74a625d79f87

Contents?: true

Size: 467 Bytes

Versions: 13

Compression:

Stored size: 467 Bytes

Contents

require 'spec_helper'
require 'tasks/projects/list_task'
require 'fileutils'

describe Projects::ListTask do
  let(:projects) { %w[a b c] }

  describe '#task', config: true do
    let(:base) { Anvil::Config.base_projects_path }

    before do
      projects.each { |p| FileUtils.mkdir_p(base + "/#{p}") }
    end

    it 'list the projects in the projects path' do
      expect(subject).to receive(:list_projects).with(projects)
      subject.task
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
anvil-core-0.6.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.5.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.4.2 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.4.1 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.4.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.3.2 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.3.1 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.3.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.2.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.1.0 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.0.1.pre.alpha.3 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.0.1.pre.alpha.2 spec/lib/tasks/projects/list_task_spec.rb
anvil-core-0.0.1.alpha.1 spec/lib/tasks/projects/list_task_spec.rb