Sha256: b75d1a39439e468d2f5016928dba443ce4f4cfef38b8eaf732ee6b4493dea198
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 KB
Contents
module JsTestCore module Representations class Suite < Page class << self def project_js_files @@project_js_files ||= [] end def project_js_files=(files) @@project_js_files = files end def project_css_files @@project_css_files ||= [] end def project_css_files=(files) @@project_css_files = files end end attr_reader :spec_files needs :spec_files protected def title_text "Js Test Core Suite" end def head_content project_js_files project_css_files spec_script_elements end def spec_script_elements spec_files.each do |file| script :type => "text/javascript", :src => file end end def project_js_files self.class.project_js_files.each do |file| script :src => file, :type => "text/javascript" end end def project_css_files self.class.project_css_files.each do |file| link :href => file, :type => "text/css", :media => "screen", :rel => "stylesheet" end end def body_content end end end end
Version data entries
4 entries across 4 versions & 2 rubygems