Class: XSpec::BrokenSpecFile
- Inherits:
-
Object
- Object
- XSpec::BrokenSpecFile
- Defined in:
- lib/xspec.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #errored? ⇒ Boolean
- #failures? ⇒ Boolean
-
#initialize(path, error) ⇒ BrokenSpecFile
constructor
A new instance of BrokenSpecFile.
- #not_run? ⇒ Boolean
- #ran? ⇒ Boolean
- #run! ⇒ Object
- #successful? ⇒ Boolean
Constructor Details
#initialize(path, error) ⇒ BrokenSpecFile
Returns a new instance of BrokenSpecFile.
124 125 126 127 |
# File 'lib/xspec.rb', line 124 def initialize(path, error) @path, @error = path, error @failures = [].freeze end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
122 123 124 |
# File 'lib/xspec.rb', line 122 def error @error end |
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
122 123 124 |
# File 'lib/xspec.rb', line 122 def failures @failures end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
122 123 124 |
# File 'lib/xspec.rb', line 122 def path @path end |
Instance Method Details
#errored? ⇒ Boolean
137 138 139 |
# File 'lib/xspec.rb', line 137 def errored? true end |
#failures? ⇒ Boolean
141 142 143 |
# File 'lib/xspec.rb', line 141 def failures? false end |
#not_run? ⇒ Boolean
133 134 135 |
# File 'lib/xspec.rb', line 133 def not_run? false end |
#ran? ⇒ Boolean
129 130 131 |
# File 'lib/xspec.rb', line 129 def ran? true end |
#run! ⇒ Object
149 150 |
# File 'lib/xspec.rb', line 149 def run! end |
#successful? ⇒ Boolean
145 146 147 |
# File 'lib/xspec.rb', line 145 def successful? false end |