Sha256: 4b9dca356aec86c8102c3deef0d8062e2f239620a74c73e4d5062cf680d348ac
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
require 'spec_helper' describe ProjectScanner do describe '::scan' do it 'should scan the project directory' + ' and return paths to ruby source files when the path is correct and the directory has .rb files' do paths = ProjectScanner.scan(File.dirname(__FILE__) + '/../../test_projects') expect(paths).not_to be_empty end it 'should raise an exception when the project directory path is invalid' do expect { ProjectScanner.scan('a_directory')}.to raise_error end it 'should return empty array when no ruby files were found' do paths = ProjectScanner.scan(File.dirname(__FILE__) + '/../../test_projects/empty_project') expect(paths).to be_empty end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reconn-1.0.0 | spec/reconn/util/project_scanner_spec.rb |
reconn-0.1.0 | spec/reconn/util/project_scanner_spec.rb |