Sha256: be1491f58f6feb48a1dd801a40134f6b2bb023731c7fa87ab1f9562f132e4d04
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
module JsTestCore module Resources module Specs module Spec class << self def spec_representation_class @spec_representation_class ||= JsTestCore::Representations::Spec end attr_writer :spec_representation_class end def get_generated_spec connection.terminate_after_sending do connection.send_head( 200, 'Content-Type' => "text/html", 'Last-Modified' => ::File.mtime(absolute_path).rfc822 ) body = render_spec connection.send_data("Content-Length: #{body.length}\r\n\r\n") connection.send_data(body) end end def render_spec Spec.spec_representation_class.new(:spec_files => spec_files).to_s end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pivotal-screw-unit-0.4.2 | vendor/js-test-core/lib/js_test_core/resources/specs/spec.rb |
pivotal-screw-unit-0.4.3 | vendor/js-test-core/lib/js_test_core/resources/specs/spec.rb |