I'm testing a method written in ruby on rails. The short story is - I'm using the Axlsx gem to create an Excel spreadsheet from ruby. I'd like to test (using Rake) that the add_row method is assigning the style I want to the row. The method returns an array where the first item is the text in each cell in the row, and the second item is the style info for each cell.
Now, Rake can tell that the first array element is correct, but it's returning nil
for the second, meaning the style information isn't visible outside of my class.
Rather than try to wriggle through Axlsx's documentation and rules, I thought it'd be much simpler to verify the style is being assigned in the method and send a message back to Rake to verify this. Is there a way I can do this? Thank you!