Sha256: b671238d593667e4ac664ec67efc84d4841aa3d9d3f7fd959a78b40b23df4965

Contents?: true

Size: 707 Bytes

Versions: 5

Compression:

Stored size: 707 Bytes

Contents

require 'spec_helper'
require 'tmpdir'
require 'fileutils'

describe 'zeus-parallel_tests' do
  before do
    @project_dir = File.expand_path(Dir.mktmpdir)
    Dir.mkdir(File.join(@project_dir, "script"))

    bin = File.expand_path('../../../bin/zeus-parallel_tests', __FILE__)
    @run = -> { system("#{bin} init &>/dev/null", chdir: @project_dir) }
  end

  after do
    FileUtils.rm_rf @project_dir
    @io && @io.close
  end

  it "creates zeus configuration and script/spec in projects directory" do
    @run.call

    expected_files = ['zeus.json', 'custom_plan.rb'].
      map { |f| File.join(@project_dir, f) }

    expected_files.each do |f|
      File.exists?(f).should be_true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zeus-parallel_tests-0.2.4 spec/slow/zeus-parallel_tests_spec.rb
zeus-parallel_tests-0.2.3 spec/slow/zeus-parallel_tests_spec.rb
zeus-parallel_tests-0.2.2 spec/slow/zeus-parallel_tests_spec.rb
zeus-parallel_tests-0.2.1 spec/slow/zeus-parallel_tests_spec.rb
zeus-parallel_tests-0.2.0 spec/slow/zeus-parallel_tests_spec.rb