Commit bdf2f933 authored by Ken Barber's avatar Ken Barber

(maint) Switch to stubbing correct object method for corrective_change test

The test was presuming that a report could be modified like an array, but it
really needed the property method. This property is an attr_reader, stubbing
gets around this access problem though.
Signed-off-by: 's avatarKen Barber <>
parent 0893bb76
......@@ -118,7 +118,7 @@ describe processor do
it "should include corrective_change or nil" do
if defined?(subject.corrective_change) then
subject["corrective_change"] = false
result = subject.send(:report_to_hash)
if defined?(subject.corrective_change) then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment