Class: XSpec::BrokenSpecFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



122
123
124
# File 'lib/xspec.rb', line 122

def error
  @error
end

#failuresObject (readonly)

Returns the value of attribute failures.



122
123
124
# File 'lib/xspec.rb', line 122

def failures
  @failures
end

#pathObject (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

Returns:

  • (Boolean)


137
138
139
# File 'lib/xspec.rb', line 137

def errored?
  true
end

#failures?Boolean

Returns:

  • (Boolean)


141
142
143
# File 'lib/xspec.rb', line 141

def failures?
  false
end

#not_run?Boolean

Returns:

  • (Boolean)


133
134
135
# File 'lib/xspec.rb', line 133

def not_run?
  false
end

#ran?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


145
146
147
# File 'lib/xspec.rb', line 145

def successful?
  false
end