Sha256: 3d71ea5e298f13187ff37671db8ddb253226a4846f404b83f966591a23e4d8e2

Contents?: true

Size: 1.29 KB

Versions: 37

Compression:

Stored size: 1.29 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",
                      :encoding=>'UTF-8')
    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",
                      :encoding=>'UTF-8')
    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/ruby_projects/helloGem/rakefile.rb")
    expect(system_deps.length).to eq(2)
    expect(system_deps.include?('json')).to eq(true)
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
dev_tasks-1.0.38 spec/dependencies_spec.rb
dev_tasks-1.0.37 spec/dependencies_spec.rb
dev_tasks-1.0.35 spec/dependencies_spec.rb
dev_tasks-1.0.34 spec/dependencies_spec.rb
dev_tasks-1.0.33 spec/dependencies_spec.rb
dev_tasks-1.0.31 spec/dependencies_spec.rb
dev_tasks-1.0.30 spec/dependencies_spec.rb
dev_tasks-1.0.29 spec/dependencies_spec.rb
dev_tasks-1.0.28 spec/dependencies_spec.rb
dev_tasks-1.0.27 spec/dependencies_spec.rb
dev_tasks-1.0.26 spec/dependencies_spec.rb
dev_tasks-1.0.25 spec/dependencies_spec.rb
dev_tasks-1.0.24 spec/dependencies_spec.rb
dev_tasks-1.0.23 spec/dependencies_spec.rb
dev_tasks-1.0.22 spec/dependencies_spec.rb
dev_tasks-1.0.21 spec/dependencies_spec.rb
dev_tasks-1.0.20 spec/dependencies_spec.rb
dev_tasks-1.0.19 spec/dependencies_spec.rb
dev_tasks-1.0.18 spec/dependencies_spec.rb
dev_tasks-1.0.17 spec/dependencies_spec.rb