Is there an elegant way to use the variable var_name
in the method below - so whichever name used as a first string in the step will be reflected at the end of the var
?
Then( the {string} variable in the response should be {string} ) do |var_name, value|
var = Connection.session.**"#{var_name}"**
raise "Expected #{var} to equal #{value} , but was #{var}" unless var == value
end
BR, Kamilo