Sha256: 11833f5eb2feeda4d0ab9f60d60e25c5e25a6f732d65453174a98a4f7de52436
Contents?: true
Size: 1.17 KB
Versions: 7
Compression:
Stored size: 1.17 KB
Contents
class JsTestServer::Server::Views::Suites::ScrewUnit < JsTestServer::Server::Views::Suite class << self attr_accessor :jquery_js_file end needs :spec_files, :framework_path attr_reader :spec_files, :framework_path def title_text "Screw Unit suite" end def head_content core_js_files project_js_files link :rel => "stylesheet", :href => "/framework/screw.css" project_css_files spec_script_elements end 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 def jquery_js_file self.class.jquery_js_file || ( (jquery_path = Dir["#{framework_path}/jquery-*.js"].sort.last) && "/framework/#{File.basename(jquery_path)}" ) end def body_content div :id => "screw_unit_content" end end
Version data entries
7 entries across 7 versions & 2 rubygems