Class: JsTestServer::Server::Views::Suites::Jasmine

Inherits:
JsTestServer::Server::Views::Suite show all
Defined in:
lib/js_test_server/server/views/suites/jasmine.html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsTestServer::Server::Views::Suite

project_css_files, project_css_files=, project_js_files, project_js_files=

Methods inherited from Page

#content

Instance Attribute Details

#framework_pathObject (readonly)

Returns the value of attribute framework_path.



3
4
5
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 3

def framework_path
  @framework_path
end

#spec_filesObject (readonly)

Returns the value of attribute spec_files.



3
4
5
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 3

def spec_files
  @spec_files
end

Instance Method Details

#body_contentObject



27
28
29
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 27

def body_content
  div :id => "jasmine_content"
end

#core_js_filesObject



19
20
21
22
23
24
25
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 19

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

#head_contentObject



9
10
11
12
13
14
15
16
17
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 9

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

#title_textObject



5
6
7
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 5

def title_text
  "Jasmine suite"
end