Class: RSpecLive::WatcherDisplay

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-live/display.rb

Instance Method Summary collapse

Constructor Details

#initialize(section) ⇒ WatcherDisplay

Returns a new instance of WatcherDisplay.



22
23
24
# File 'lib/rspec-live/display.rb', line 22

def initialize(section)
  @section = section
end

Instance Method Details

#status=(status) ⇒ Object



26
27
28
29
# File 'lib/rspec-live/display.rb', line 26

def status=(status)
  @section.content = "RSpec summary for #{File.basename Dir.pwd} (#{status})"
  @section.refresh
end