Class: Specjour::RSpec::MarshalableException

Inherits:
Object
  • Object
show all
Defined in:
lib/specjour/rspec/marshalable_exception.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MarshalableException) initialize(exception)



5
6
7
8
9
# File 'lib/specjour/rspec/marshalable_exception.rb', line 5

def initialize(exception)
  self.class_name = exception.class.name
  self.message = exception.message
  self.backtrace = exception.backtrace
end

Instance Attribute Details

- (Object) backtrace

Returns the value of attribute backtrace



3
4
5
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3

def backtrace
  @backtrace
end

- (Object) class_name

Returns the value of attribute class_name



3
4
5
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3

def class_name
  @class_name
end

- (Object) message

Returns the value of attribute message



3
4
5
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3

def message
  @message
end

Instance Method Details

- (Object) class



11
12
13
# File 'lib/specjour/rspec/marshalable_exception.rb', line 11

def class
  @class ||= OpenStruct.new :name => class_name
end

- (Boolean) pending_fixed?



15
16
17
# File 'lib/specjour/rspec/marshalable_exception.rb', line 15

def pending_fixed?
  false
end