Class: Spassky::Client::Pusher

Inherits:
Object
  • Object
show all
Defined in:
lib/spassky/client/pusher.rb

Instance Method Summary collapse

Constructor Details

#initialize(server_url, sleeper = Kernel) ⇒ Pusher

Returns a new instance of Pusher.



6
7
8
9
# File 'lib/spassky/client/pusher.rb', line 6

def initialize(server_url, sleeper=Kernel)
  @server_url = server_url
  @sleeper = sleeper
end

Instance Method Details

#push(options) ⇒ Object



11
12
13
14
15
16
# File 'lib/spassky/client/pusher.rb', line 11

def push(options)
  each_test_suite_result(post_test(options)) do |result|
    yield result
    @sleeper.sleep 0.4
  end
end