Class: ParallelRSpec::Server
- Inherits:
-
Object
- Object
- ParallelRSpec::Server
- Defined in:
- lib/parallel_rspec/server.rb
Instance Attribute Summary collapse
-
#reporter ⇒ Object
readonly
Returns the value of attribute reporter.
Instance Method Summary collapse
- #deprecation(hash) ⇒ Object
- #example_failed(example) ⇒ Object
- #example_passed(example) ⇒ Object
- #example_pending(example) ⇒ Object
- #example_started(example) ⇒ Object
-
#initialize(reporter) ⇒ Server
constructor
A new instance of Server.
- #result(result) ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(reporter) ⇒ Server
Returns a new instance of Server.
5 6 7 8 |
# File 'lib/parallel_rspec/server.rb', line 5 def initialize(reporter) @reporter = reporter @success = true end |
Instance Attribute Details
#reporter ⇒ Object (readonly)
Returns the value of attribute reporter.
3 4 5 |
# File 'lib/parallel_rspec/server.rb', line 3 def reporter @reporter end |
Instance Method Details
#deprecation(hash) ⇒ Object
26 27 28 |
# File 'lib/parallel_rspec/server.rb', line 26 def deprecation(hash) reporter.deprecation(hash) end |
#example_failed(example) ⇒ Object
18 19 20 |
# File 'lib/parallel_rspec/server.rb', line 18 def example_failed(example) reporter.example_failed(example) end |
#example_passed(example) ⇒ Object
14 15 16 |
# File 'lib/parallel_rspec/server.rb', line 14 def example_passed(example) reporter.example_passed(example) end |
#example_pending(example) ⇒ Object
22 23 24 |
# File 'lib/parallel_rspec/server.rb', line 22 def example_pending(example) reporter.example_pending(example) end |
#example_started(example) ⇒ Object
10 11 12 |
# File 'lib/parallel_rspec/server.rb', line 10 def example_started(example) reporter.example_started(example) end |
#result(result) ⇒ Object
30 31 32 |
# File 'lib/parallel_rspec/server.rb', line 30 def result(result) @success &&= result end |
#success? ⇒ Boolean
34 35 36 |
# File 'lib/parallel_rspec/server.rb', line 34 def success? @success end |