Class: Clumsy::TestRunner
- Inherits:
-
Object
- Object
- Clumsy::TestRunner
- Defined in:
- lib/clumsy/test_runner.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(server, test_file) ⇒ TestRunner
constructor
A new instance of TestRunner.
- #process ⇒ Object
- #send_request ⇒ Object
Constructor Details
#initialize(server, test_file) ⇒ TestRunner
Returns a new instance of TestRunner.
6 7 8 9 |
# File 'lib/clumsy/test_runner.rb', line 6 def initialize(server, test_file) @server = server @test_file = test_file end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/clumsy/test_runner.rb', line 4 def response @response end |
Instance Method Details
#process ⇒ Object
15 16 17 |
# File 'lib/clumsy/test_runner.rb', line 15 def process send_request end |
#send_request ⇒ Object
11 12 13 |
# File 'lib/clumsy/test_runner.rb', line 11 def send_request @response = HTTP.send(@test_file.request_method.downcase.to_sym, @test_file.request_url) end |