Sha256: a65dc2d0275cf43f8bbcb62fa9141501b90426ca7f8604a49ab06f683c431508

Contents?: true

Size: 401 Bytes

Versions: 7

Compression:

Stored size: 401 Bytes

Contents

require 'childprocess'

module RestAssured
  class AppSession
    def initialize
      @child = ChildProcess.build('bin/rest-assured', *Config.to_cmdargs)
      @child.cwd = File.expand_path '../../../..', __FILE__
      @child.io.inherit!
      @child.start
    end

    def stop
      @child.stop while @child.alive?
    end

    def method_missing(*args)
      @child.send(*args)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest-assured-4.0.0 lib/rest-assured/api/app_session.rb
rest-assured-3.0.1 lib/rest-assured/api/app_session.rb
rest-assured-3.0.0 lib/rest-assured/api/app_session.rb
rest-assured-2.2.0 lib/rest-assured/api/app_session.rb
rest-assured-2.1.0 lib/rest-assured/api/app_session.rb
rest-assured-2.0.2 lib/rest-assured/api/app_session.rb
rest-assured-2.0.1 lib/rest-assured/api/app_session.rb