Rewrite Spec & allow Jasmine to be namespaced
- THere seems to be a performance regression. Large test suites may throw - Regressions: Mock Clock won't install correctly, async specs are temporarily not supported. - Async spec runs/waits interface is gone. Blocks are gone. - Move most global usage into jasmine.Env constructor. - Remove optional 'Jasmine running' from HtmlReporter -- caused NS_FACTORY_ERROR in firefox when tested
This commit is contained in:
@@ -21,7 +21,7 @@ class JasmineDev < Thor
|
||||
def count_specs_in(relative_path)
|
||||
files = Dir.glob(File.join(JasmineDev.project_root, relative_path, '*.js'))
|
||||
files.inject(0) do |count, file|
|
||||
File.read(file).scan(/\sit\s*\(/) { |s| count += 1 }
|
||||
File.read(file).scan(/^\s*it\(.*/) { |s| count += 1 }
|
||||
count
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user