Sha256: afb0af215290f928e5ce18623ebca9eaecbd92ff07cd36da0abc699495234a89

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raph-0.0.3 spec/raph/parser/file_parser_spec.rb
raph-0.0.1 spec/raph/parser/file_parser_spec.rb