Sha256: 31741b048e9c6fd51e7c944c775f837982137b54c37d5ea20b8852b43c0cb9e7
Contents?: true
Size: 1.63 KB
Versions: 3
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_project") do ruby_dev_task=DevTasks.new expect(ruby_dev_task[:name]).to eq('ruby_project') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-1.0.0 | spec/dev_tasks_spec.rb |
dev_tasks-0.0.166 | spec/dev_tasks_spec.rb |
dev_tasks-0.0.164 | spec/dev_tasks_spec.rb |