Sha256: 1bd7b1bb92970de9b9e365aeef7e7c014e3e15112810a69d222e068c26f8855a
Contents?: true
Size: 1.43 KB
Versions: 11
Compression:
Stored size: 1.43 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/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
11 entries across 11 versions & 1 rubygems