Class: ParallelRSpec::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel_rspec/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reporterObject (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

Returns:

  • (Boolean)


34
35
36
# File 'lib/parallel_rspec/server.rb', line 34

def success?
  @success
end