lib/snapdragon/views/run.erb in snapdragon-0.1.5 vs lib/snapdragon/views/run.erb in snapdragon-0.1.6

- old
+ new

@@ -1,34 +1,31 @@ <link rel="stylesheet" type="text/css" href="/jasmine-core/jasmine.css"> <script type="text/javascript" src="/jasmine-core/jasmine.js"></script> <script type="text/javascript" src="/jasmine-core/jasmine-html.js"></script> -<script type="text/javascript" src="/resources/ConsoleReporter.js"></script> +<script type="text/javascript" src="/resources/SnapdragonConsoleReporter.js"></script> -<script type="text/javascript"> -// The implementation code the spec files being tested need -<%= @suite.output_spec_dependencies %> -</script> +<!-- The implementation code the spec files being tested need --> +<% @suite.require_paths.each do |path| %> +<script type="text/javascript" src="<%= path %>"></script> +<% end %> -<script type="text/javascript"> -// The spec file contents +<!-- The spec files --> <% @suite.spec_files.each do |spec| %> -<%= spec.read %> +<script type="text/javascript" src="<%= spec.relative_url_path %>"></script> <% end %> -</script> <script type="text/javascript"> (function() { var jasmineEnv = jasmine.getEnv(); jasmineEnv.updateInterval = 1000; var htmlReporter = new jasmine.HtmlReporter(); jasmineEnv.addReporter(htmlReporter); - var consoleReporterFunc = jasmine.ConsoleReporter(); - var consoleReporter = new consoleReporterFunc({}); - jasmineEnv.addReporter(consoleReporter); + var snapdragonConsoleReporter = new jasmine.SnapdragonConsoleReporter({}); + jasmineEnv.addReporter(snapdragonConsoleReporter); jasmineEnv.specFilter = function(spec) { return htmlReporter.specFilter(spec); };