Improved output to show real content of variable via inspect instead of calling .to_s on it.

This commit is contained in:
Thorsten Eckel 2017-12-20 15:42:50 +01:00
parent 8a2e117995
commit eb00d57bac
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ class Sequencer
@values = {}
initialize_attributes(sequence.units)
initialize_parameters(parameters.with_indifferent_access)
initialize_parameters(parameters)
initialize_expectations(expecting || sequence.expecting)
end
@ -195,7 +195,7 @@ class Sequencer
end
def unprovideable_setter(attribute, value)
message = "Unprovideable attribute '#{attribute}' set with value (#{value.class.name}): '#{value}'"
message = "Unprovideable attribute '#{attribute}' set with value (#{value.class.name}): #{value.inspect}"
logger.error(message)
raise message
end

View file

@ -24,7 +24,7 @@ class Sequencer
end
def sequence_resource(resource)
sequence_parameter = default_params.dup
sequence_parameter = default_parameter.dup
sequence_parameter[:resource] = resource
sequence_parameter = yield(sequence_parameter) if block_given?
@ -32,7 +32,7 @@ class Sequencer
sequence_parameter[:resource] = sequence_parameter[:resource].to_h.with_indifferent_access
::Sequencer.process(sequence_name,
parameters: default_params.merge(sequence_parameter))
parameters: sequence_parameter)
end
def sequence_resources(resources, &block)