Sha256: ca83ccb4d4d86cfb671e4384ef249fbaa796b3f8a2321fc4b8c5e681340a7312
Contents?: true
Size: 962 Bytes
Versions: 8
Compression:
Stored size: 962 Bytes
Contents
class JasmineHelper def self.jasmine_lib_dir File.expand_path(File.join(jasmine_root, 'lib')) end def self.jasmine_root File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..')) end def self.jasmine ['/lib/' + File.basename(Dir.glob("#{JasmineHelper.jasmine_lib_dir}/jasmine*.js").first)] + ['/lib/json2.js', '/lib/TrivialReporter.js', '/lib/consolex.js' ] end def self.jasmine_src_dir File.expand_path(File.join(jasmine_root, 'src')) end def self.jasmine_spec_dir File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec')) end def self.raw_spec_files Dir.glob(File.join(jasmine_spec_dir, "**/*[Ss]pec.js")) end def self.specs raw_spec_files.collect {|f| f.sub(jasmine_spec_dir, "/spec")} end def self.dir_mappings { "/src" => jasmine_src_dir, "/spec" => jasmine_spec_dir, "/lib" => jasmine_lib_dir } end end
Version data entries
8 entries across 8 versions & 3 rubygems