Sha256: 7d9e88b1d29a42fc3aacf43381b0c60637d97ffa6329b7ad568f7b1d608a1802
Contents?: true
Size: 1.63 KB
Versions: 37
Compression:
Stored size: 1.63 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_projects/helloGem") do ruby_dev_task=DevTasks.new expect(ruby_dev_task[:name]).to eq('helloGem') end end if(RUBY_PLATFORM.include?("mingw")) 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') end dir="#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll" expect(File.exists?(dir)).to eq(true) Environment.rake(dir,"default",false) if(!RUBY_PLATFORM.include?("mingw")) expect(File.exists?("#{dir}/bin/Net4.0/Debug/helloDll.dll")).to eq(true) expect(File.exists?("#{dir}/bin/Net4.5/Release/helloDll.dll")).to eq(true) end 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) if(RUBY_PLATFORM.include?("mingw")) expect(File.exists?("#{dir}/bin/v90/Debug/helloLib.v9.lib")).to eq(true) expect(File.exists?("#{dir}/bin/v90/Release/helloLib.v9.lib")).to eq(true) expect(File.exists?("#{dir}/bin/v120/Debug/helloLib.v12.lib")).to eq(true) expect(File.exists?("#{dir}/bin/v120/Release/helloLib.v12.lib")).to eq(true) end Environment.rake(dir,"clobber",false) #File.exists?("#{dir}/bin").should eq(false) end end end
Version data entries
37 entries across 37 versions & 1 rubygems