Class: Uberspec::Config
- Inherits:
-
Object
- Object
- Uberspec::Config
- Defined in:
- lib/uberspec/config.rb
Constant Summary collapse
- IMAGE_DIR =
File.(File.join(File.dirname(__FILE__), '..', '..', 'img'))
Instance Attribute Summary collapse
-
#code_paths ⇒ Object
An array of watchr patterns for code files.
-
#failed_image ⇒ Object
Image/Icon to show when any tests fail.
-
#notify ⇒ Object
Accessor for which notify library to use, if any.
-
#passed_image ⇒ Object
Image/Icon to show when all tests pass.
-
#pending_image ⇒ Object
Image/Icon to show when there are pending tests.
-
#spec_paths ⇒ Object
An array of watchr patterns for spec files.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Create new config object with default values.
Constructor Details
#initialize ⇒ Config
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_paths ⇒ Object
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_image ⇒ Object
Image/Icon to show when any tests fail
22 23 24 |
# File 'lib/uberspec/config.rb', line 22 def failed_image @failed_image end |
#notify ⇒ Object
Accessor for which notify library to use, if any.
13 14 15 |
# File 'lib/uberspec/config.rb', line 13 def notify @notify end |
#passed_image ⇒ Object
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_image ⇒ Object
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_paths ⇒ Object
An array of watchr patterns for spec files.
7 8 9 |
# File 'lib/uberspec/config.rb', line 7 def spec_paths @spec_paths end |