Sha256: 2044a4c142ad29a8c3a80baed52e2bba102726bb0756d6cf8ef3c944ddd4b616

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require 'spec_helper'

describe Codependency::Graph do
  context 'planets', :files => :planets do
    subject { Codependency::Graph.new graph }

    context 'earth' do
      let( :graph ){ 'earth.rb' }
      its( :files ){ should eq( %w| body.rb planet.rb earth.rb | ) }
    end

    context 'phobos' do
      let( :graph ){ 'phobos.rb' }
      its( :files ){ should eq( %w| body.rb planet.rb mars.rb phobos.rb | ) }
    end
  end

  context 'breakfasts', :files => :breakfasts do
    subject { Codependency::Graph.new graph, :comment => '//' }

    context 'sandwich' do
      let( :graph ){ 'sandwich.js' }
      its( :files ){ should eq( %w| butter.js toast.js egg.js sandwich.js | ) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codependency-0.2.0 spec/codependency/graph_spec.rb