Sha256: 98e1c7f733fd7b4eb7ae472e4c48659c7e23d39068e1cfeca64beeb2dff4394e

Contents?: true

Size: 823 Bytes

Versions: 4

Compression:

Stored size: 823 Bytes

Contents

class JsTestServer::Server::Views::Suites::Jasmine < JsTestServer::Server::Views::Suite
  needs :spec_files, :framework_path
  attr_reader :spec_files, :framework_path

  def title_text
    "Jasmine suite"
  end

  def head_content
    core_js_files
    project_js_files
    link :rel => "stylesheet", :href => "/framework/jasmine.css"
    project_css_files
    spec_script_elements
    javascript "JsTestServer.JasmineDriver.init();"

  end

  def core_js_files
    jasmine_file = File.basename(Dir["#{framework_path}/jasmine*.js"].sort.last)
    javascript :src => "/framework/#{jasmine_file}"
    javascript :src => "/framework/TrivialReporter.js"
    javascript :src => "/js_test_server.js"
    javascript :src => "/js_test_server/jasmine_driver.js"
  end

  def body_content
    div :id => "jasmine_content"
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
honkster-js-test-server-0.2.10 lib/js_test_server/server/views/suites/jasmine.html.rb
honkster-js-test-server-0.2.9 lib/js_test_server/server/views/suites/jasmine.html.rb
js-test-server-0.2.8 lib/js_test_server/server/views/suites/jasmine.html.rb
js-test-server-0.2.7 lib/js_test_server/server/views/suites/jasmine.html.rb