spec/raph/parser/file_parser_spec.rb in raph-0.0.2 vs spec/raph/parser/file_parser_spec.rb in raph-0.0.3

- old
+ new

@@ -1,25 +1,25 @@ -require 'spec_helper' - -require 'raph/parser/file_parser' - -module Raph - module Parser - describe FileParser do - describe '#parse' do - it 'detects files' do - expect(subject.parse(['**/*.rb'])).to include(Dir["**/file_parser_spec.rb"].join) - end - - it 'does not detect non files' do - expect(subject.parse(['no-such-file.py'])).to be_empty - end - end - - describe '#id' do - it 'has correct form' do - expect(subject.id).to eql :files - end - end - end - end -end +require 'spec_helper' + +require 'raph/parser/file_parser' + +module Raph + module Parser + describe FileParser do + describe '#parse' do + it 'detects files' do + expect(subject.parse(['**/*.rb'])).to include(Dir["**/file_parser_spec.rb"].join) + end + + it 'does not detect non files' do + expect(subject.parse(['no-such-file.py'])).to be_empty + end + end + + describe '#id' do + it 'has correct form' do + expect(subject.id).to eql :files + end + end + end + end +end