Sha256: 41c02184c2883252a65fc8282320363dfd96a84f316019cf31e6515ee8276314

Contents?: true

Size: 1.11 KB

Versions: 22

Compression:

Stored size: 1.11 KB

Contents

require_relative '../lib/dependencies.rb'

describe Dependencies do
  it "should be able to extract C# system dependencies" do
    system_deps = Dependencies.csharp_system_dependencies File.read("#{File.dirname(__FILE__)}/test_data/csharp_projects/JsonNet.Test.csproj")
	expect(system_deps.length).to eq(7)
	expect(system_deps.include?('System')).to eq(true)
	expect(system_deps.include?('System.Xml')).to eq(true)
	expect(system_deps.include?('Microsoft.CSharp')).to eq(true)
  end

  it "should be able to extract C# file dependencies" do
    system_deps = Dependencies.csharp_file_dependencies File.read("#{File.dirname(__FILE__)}/test_data/csharp_projects/JsonNet.Test.csproj")
	expect(system_deps.length).to eq(2)
	expect(system_deps.include?('dep\github\lou-parslow\NetLibs\develop\NUnit\2.6.3\bin\framework\nunit.framework.dll')).to eq(true)
  end

  it "should be able to extract ruby dependencies" do
    system_deps = Dependencies.ruby_dependencies File.read("#{File.dirname(__FILE__)}/test_data/example.rb")
	expect(system_deps.length).to eq(2)
	expect(system_deps.include?('json')).to eq(true)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dev_tasks-0.0.163 spec/dependencies_spec.rb
dev_tasks-0.0.162 spec/dependencies_spec.rb
dev_tasks-0.0.161 spec/dependencies_spec.rb
dev_tasks-0.0.160 spec/dependencies_spec.rb
dev_tasks-0.0.159 spec/dependencies_spec.rb
dev_tasks-0.0.158 spec/dependencies_spec.rb
dev_tasks-0.0.157 spec/dependencies_spec.rb
dev_tasks-0.0.156 spec/dependencies_spec.rb
dev_tasks-0.0.155 spec/dependencies_spec.rb
dev_tasks-0.0.154 spec/dependencies_spec.rb
dev_tasks-0.0.153 spec/dependencies_spec.rb
dev_tasks-0.0.152 spec/dependencies_spec.rb
dev_tasks-0.0.151 spec/dependencies_spec.rb
dev_tasks-0.0.150 spec/dependencies_spec.rb
dev_tasks-0.0.149 spec/dependencies_spec.rb
dev_tasks-0.0.148 spec/dependencies_spec.rb
dev_tasks-0.0.147 spec/dependencies_spec.rb
dev_tasks-0.0.146 spec/dependencies_spec.rb
dev_tasks-0.0.145 spec/dependencies_spec.rb
dev_tasks-0.0.144 spec/dependencies_spec.rb