Sha256: b75a5ecb9cdc11eedbd0e4561cca4d1e192c5dca3e003e247fa88bf0dcfb49a0
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 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 egg.js toast.js sandwich.js | ) } end end context 'circular dependencies', :files => :circular do subject { Codependency::Graph.new graph } let( :graph ){ 'money.rb' } it 'should raise an error' do expect { subject.files }.to raise_error( CircularDependencyError ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codependency-0.3.0 | spec/codependency/graph_spec.rb |