Sha256: a6a830bb9bf747b6bd8a074e34480bc22405328a2a48cfced04b40483cef8325
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' describe Codependency::Parser do let( :path ){ File.join( File.dirname( __FILE__ ), '../fixtures' ) } let( :parser ){ Codependency::Parser.new } context 'body' do subject { parser.parse( "#{path}/body.rb" ) } it { should eq( [ ] ) } end context 'earth' do subject { parser.parse( "#{path}/earth.rb" ) } it { should eq( [ 'planet' ] ) } end context 'mars' do subject { parser.parse( "#{path}/mars.rb" ) } it { should eq( [ 'planet' ] ) } end context 'phobos' do subject { parser.parse( "#{path}/phobos.rb" ) } it { should eq( [ 'body', 'mars' ] ) } end context 'planet' do subject { parser.parse( "#{path}/planet.rb" ) } it { should eq( [ 'body' ] ) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codependency-0.1.0 | spec/codependency/parser_spec.rb |