Sha256: 06de48fb88acb8e1277c55e43a560338fb9fc7ca6efada8a8ec0b057127a4d6d
Contents?: true
Size: 1.34 KB
Versions: 8
Compression:
Stored size: 1.34 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,"default",false) File.exists?("#{dir}/bin/vs9/Debug/helloLib.lib").should eq(true) File.exists?("#{dir}/bin/vs9/Release/helloLib.lib").should eq(true) File.exists?("#{dir}/bin/vs12/Debug/helloLib.lib").should eq(true) File.exists?("#{dir}/bin/vs12/Release/helloLib.lib").should eq(true) Environment.rake(dir,"clobber",false) File.exists?("#{dir}/bin").should eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems