Sha256: a51a959d86bfcd1f1ebaaa1ec5b07d7f42920d8d6586147ca9c072537f8d421d

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"
require 'rubygems'
require 'nodefinders/gems_node_finder'

include FileTestHelper
include DepGraph::NodeFinders

describe GemsNodeFinder do
  it "should list all gems and its dependencies" do
    with_files('fakegem-0.9.1.gemspec' => 's.add_dependency(%q<fakedependencygem>, [">= 1.5.0"])') do
      gems_node_finder = GemsNodeFinder.new
      gems_node_finder.location = ['./']
      nodes = gems_node_finder.get_nodes
    
      nodes.should == ['fakedependencygem', 'fakegem']
      nodes[1].dependencies.size.should == 1
      nodes[1].dependencies[0].name.should == 'fakedependencygem'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
depgraph-0.11.0 spec/IntegrationTests/gems_node_finder_spec.rb