Sha256: 580078d6a66cd2358d9f53ca9a8b46626a719c60425a8400c0b1c5a3d8bbc0d6
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
require 'spec_helper' describe Codependency::Parser do context 'planets', :files => :planets do let( :parser ){ Codependency::Parser.new } context 'body' do subject { parser.parse( 'body.rb' ) } it { should eq( [ ] ) } end context 'earth' do subject { parser.parse( 'earth.rb' ) } it { should eq( [ 'planet' ] ) } end context 'mars' do subject { parser.parse( 'mars.rb' ) } it { should eq( [ 'planet' ] ) } end context 'phobos' do subject { parser.parse( 'phobos.rb' ) } it { should eq( [ 'body', 'mars' ] ) } end context 'planet' do subject { parser.parse( 'planet.rb' ) } it { should eq( [ 'body' ] ) } end end context 'breakfasts', :files => :breakfasts do let( :parser ){ Codependency::Parser.new :comment => '//' } context 'butter' do subject { parser.parse( 'butter.js' ) } it { should eq( [ ] ) } end context 'egg' do subject { parser.parse( 'egg.js' ) } it { should eq( [ 'butter' ] ) } end context 'toast' do subject { parser.parse( 'toast.js' ) } it { should eq( [ 'butter' ] ) } end context 'sandwich' do subject { parser.parse( 'sandwich.js' ) } it { should eq( [ 'egg', 'toast' ] ) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
codependency-0.3.1 | spec/codependency/parser_spec.rb |
codependency-0.3.0 | spec/codependency/parser_spec.rb |
codependency-0.2.0 | spec/codependency/parser_spec.rb |