Class: RestAssured::AppSession
- Inherits:
-
Object
- Object
- RestAssured::AppSession
- Defined in:
- lib/rest-assured/api/app_session.rb
Instance Method Summary collapse
-
#initialize ⇒ AppSession
constructor
A new instance of AppSession.
- #method_missing(*args) ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize ⇒ AppSession
Returns a new instance of AppSession.
5 6 7 8 9 10 |
# File 'lib/rest-assured/api/app_session.rb', line 5 def initialize @child = ChildProcess.build('bin/rest-assured', *Config.to_cmdargs) @child.cwd = File. '../../../..', __FILE__ @child.io.inherit! @child.start end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
16 17 18 |
# File 'lib/rest-assured/api/app_session.rb', line 16 def method_missing(*args) @child.send(*args) end |
Instance Method Details
#stop ⇒ Object
12 13 14 |
# File 'lib/rest-assured/api/app_session.rb', line 12 def stop @child.stop while @child.alive? end |