spec/codependency/graph_spec.rb in codependency-0.3.0 vs spec/codependency/graph_spec.rb in codependency-0.3.1

- old
+ new

@@ -31,6 +31,15 @@ it 'should raise an error' do expect { subject.files }.to raise_error( CircularDependencyError ) end end + + context 'subdirectories', :files => :subdirectories do + subject { Codependency::Graph.new graph, :comment => '//' } + + context 'application.js' do + let( :graph ){ 'application.js' } + its( :files ){ should eq( %w| templates/user/history.js templates/user/account.js templates/user.js application.js | ) } + end + end end