Sha256: 30f103d224720db998dd987694b27fa59f6773693ed6947d3ccf8a770354a2ba

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

require_relative '../lib/dev_tasks.rb'

describe DevTasks do
  it "should be able to load example ruby project" do
    Dir.chdir("#{File.dirname(__FILE__)}/test_data/ruby_project") do
	  ruby_dev_task=DevTasks.new
	  expect(ruby_dev_task[:name]).to eq('ruby_project')
	end
  end

  it "should be able to load example C# project" do
    Dir.chdir("#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll") do
	  dev_task=DevTasks.new
	  expect(dev_task[:name]).to eq('helloDll')
	  #expect(dev_task[:artifact_files].length).to eq(3)
	end
	dir="#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll"
	Environment.rake(dir,"default",false)
    File.exists?("#{dir}/bin/Net4.0/Debug/helloDll.dll").should eq(true)
	File.exists?("#{dir}/bin/Net4.5/Release/helloDll.dll").should eq(true)
  end

  it "should be able to rake cpp static library" do
    dir="#{File.dirname(__FILE__)}/test_data/cpp_projects/helloLib"
    
	Environment.rake(dir,"clobber",false)
    #File.exists?("#{dir}/bin").should eq(false)

	Environment.rake(dir,"default",false)
    File.exists?("#{dir}/bin/v90/Debug/helloLib.v9.lib").should eq(true)
	File.exists?("#{dir}/bin/v90/Release/helloLib.v9.lib").should eq(true)
	File.exists?("#{dir}/bin/v120/Debug/helloLib.v12.lib").should eq(true)
	File.exists?("#{dir}/bin/v120/Release/helloLib.v12.lib").should eq(true)

	Environment.rake(dir,"clobber",false)
    #File.exists?("#{dir}/bin").should eq(false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dev_tasks-0.0.163 spec/dev_tasks_spec.rb
dev_tasks-0.0.162 spec/dev_tasks_spec.rb
dev_tasks-0.0.161 spec/dev_tasks_spec.rb