Sha256: 73b8e4f77464d5a040f54c90d542f7a41f759946f91449d88b2beee4964c0e2f
Contents?: true
Size: 1.11 KB
Versions: 119
Compression:
Stored size: 1.11 KB
Contents
module Jasmine module Core class << self def path File.join(File.dirname(__FILE__), "jasmine-core") end def js_files (["jasmine.js"] + Dir.glob(File.join(path, "*.js"))).map { |f| File.basename(f) }.uniq - boot_files - node_boot_files end SPEC_TYPES = ["core", "html", "node"] def core_spec_files spec_files("core") end def html_spec_files spec_files("html") end def node_spec_files spec_files("node") end def boot_files ["boot.js"] end def node_boot_files ["node_boot.js"] end def boot_dir path end def spec_files(type) raise ArgumentError.new("Unrecognized spec type") unless SPEC_TYPES.include?(type) (Dir.glob(File.join(path, "spec", type, "*.js"))).map { |f| File.join("spec", type, File.basename(f)) }.uniq end def css_files Dir.glob(File.join(path, "*.css")).map { |f| File.basename(f) } end def images_dir File.join(File.dirname(__FILE__), '../images') end end end end
Version data entries
119 entries across 103 versions & 4 rubygems