Sha256: 66f0858d5882f02afe40634ec182dc1a530f8840f0e19532600885f61b1d0f24
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module MissingRspec class FolderTypesFinder EXCLUDED_FOLDER_TYPES = %w[assets javascript views] attr_reader :app_path def initialize(app_path) @app_path = app_path end def fetch_folder_types Dir.chdir(app_path) Dir.chdir('app') folder_types = Dir.glob('*/') folder_types.each(&:chop!) (folder_types - EXCLUDED_FOLDER_TYPES) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
missing_rspec-0.0.1 | lib/missing_rspec/folder_types_finder.rb |