Sha256: 9d7ec6364d0ed62847802525000859583f07b4e16319fa0330f7de2da7808c05

Contents?: true

Size: 390 Bytes

Versions: 3

Compression:

Stored size: 390 Bytes

Contents

module JsTestCore
  module Resources
    class SessionFinish < ThinRest::Resource
      property :session
      
      def post
        if session.associated_with_a_runner?
          Runner.finalize(session.id, rack_request['text'])
        else
          STDOUT.puts rack_request['text']
        end
        connection.send_head
        connection.send_body("")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
js_spec-0.3.3 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb
js_test_core-0.2.0 lib/js_test_core/resources/session_finish.rb
screw-unit-0.3.3 vendor/js-test-core/lib/js_test_core/resources/session_finish.rb