Class: JsTestServer::Server::Representations::Suites::ScrewUnit

Inherits:
JsTestServer::Server::Representations::Suite show all
Defined in:
lib/js_test_server/server/representations/suites/screw_unit.html.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsTestServer::Server::Representations::Suite

project_css_files, project_css_files=, project_js_files, project_js_files=

Methods inherited from Page

#content

Class Attribute Details

.jquery_js_fileObject



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

def jquery_js_file
  @jquery_js_file ||= "/framework/jquery-1.3.2.js"
end

Instance Attribute Details

#framework_pathObject (readonly)

Returns the value of attribute framework_path.



11
12
13
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 11

def framework_path
  @framework_path
end

#spec_filesObject (readonly)

Returns the value of attribute spec_files.



11
12
13
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 11

def spec_files
  @spec_files
end

Instance Method Details

#body_contentObject



42
43
44
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 42

def body_content
  div :id => "screw_unit_content"
end

#core_js_filesObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 26

def core_js_files
  javascript :src => jquery_js_file
  javascript :src => "/js_test_server.js"
  javascript :src => "/framework/jquery.fn.js"
  javascript :src => "/framework/jquery.print.js"
  javascript :src => "/framework/screw.builder.js"
  javascript :src => "/framework/screw.matchers.js"
  javascript :src => "/framework/screw.events.js"
  javascript :src => "/framework/screw.behaviors.js"
  javascript :src => "/js_test_server/screw_unit_driver.js"
end

#head_contentObject



17
18
19
20
21
22
23
24
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 17

def head_content
  core_js_files
  project_js_files
  link :rel => "stylesheet", :href => "/framework/screw.css"
  project_css_files

  spec_script_elements
end

#jquery_js_fileObject



38
39
40
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 38

def jquery_js_file
  self.class.jquery_js_file
end

#title_textObject



13
14
15
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 13

def title_text
  "Screw Unit suite"
end