Sha256: 01097c63535ccf22d27e076c948afcb7e4223f454fda522bc19d1cf6f458eda6
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'spec_helper' describe Codependency::Node do let( :parser ){ double 'Parser', :parse => [ 'body' ] } context 'when the file exists', :files => :planets do subject { Codependency::Node.new 'planet.rb', parser } its( :dependencies ){ should eq( [ 'body.rb' ] ) } end context 'when the file does not exist' do it 'should raise an error' do expect { Codependency::Node.new 'pluto.rb', parser }.to raise_error( Errno::ENOENT, 'No such file or directory - pluto.rb' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codependency-0.2.0 | spec/codependency/node_spec.rb |