Class: JsTestServer::Server::Representations::Suites::ScrewUnit
Class Attribute Summary collapse
Instance Attribute Summary collapse
Instance Method Summary
collapse
project_css_files, project_css_files=, project_js_files, project_js_files=
Methods inherited from Page
#content
Class Attribute Details
.jquery_js_file ⇒ Object
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_path ⇒ Object
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_files ⇒ Object
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_content ⇒ Object
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_files ⇒ Object
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_content ⇒ Object
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_file ⇒ Object
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_text ⇒ Object
13
14
15
|
# File 'lib/js_test_server/server/representations/suites/screw_unit.html.rb', line 13
def title_text
"Screw Unit suite"
end
|