lib/middleman/jasmine/tasks.rb in middleman-jasmine-0.5.0 vs lib/middleman/jasmine/tasks.rb in middleman-jasmine-0.5.1

- old
+ new

@@ -33,9 +33,13 @@ throw "Middleman Jasmine extension not activated" unless middleman_extensions.has_key?(:jasmine) path = middleman_extensions[:jasmine].jasmine_url url = "#{config.host}:#{config.port(:ci)}#{path}" runner = config.runner.call(Jasmine::Formatters::Multi.new(formatters), url) + if runner.respond_to?(:boot_js) + config.runner_boot_dir = File.dirname(runner.boot_js) + config.runner_boot_files = lambda { [runner.boot_js] } + end runner.run abort unless exit_code_formatter.succeeded? end end