Class: Uberspec::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/uberspec/config.rb

Constant Summary collapse

IMAGE_DIR =
File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'img'))

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Create new config object with default values



25
26
27
28
29
30
31
32
# File 'lib/uberspec/config.rb', line 25

def initialize
  self.spec_paths    = default_spec_paths
  self.code_paths    = default_code_paths
  self.notify        = false
  self.passed_image  = default_passed_image
  self.pending_image = default_pending_image
  self.failed_image  = default_failed_image
end

Instance Attribute Details

#code_pathsObject

An array of watchr patterns for code files.



10
11
12
# File 'lib/uberspec/config.rb', line 10

def code_paths
  @code_paths
end

#failed_imageObject

Image/Icon to show when any tests fail



22
23
24
# File 'lib/uberspec/config.rb', line 22

def failed_image
  @failed_image
end

#notifyObject

Accessor for which notify library to use, if any.



13
14
15
# File 'lib/uberspec/config.rb', line 13

def notify
  @notify
end

#passed_imageObject

Image/Icon to show when all tests pass



16
17
18
# File 'lib/uberspec/config.rb', line 16

def passed_image
  @passed_image
end

#pending_imageObject

Image/Icon to show when there are pending tests



19
20
21
# File 'lib/uberspec/config.rb', line 19

def pending_image
  @pending_image
end

#spec_pathsObject

An array of watchr patterns for spec files.



7
8
9
# File 'lib/uberspec/config.rb', line 7

def spec_paths
  @spec_paths
end