The use of OpenStruct here seems needless. `mock` could just as easily be used.