I'm very new to RSpec, so this is quite a basic question. I'm writing something which parses a lot of data from a file, does some processing and returns a summarised result, which is all very lovely to do with Ruby.
I want to put some RSpec tests around this code but I do not want to mock up data inside the test. The files are big and complex and since I want the code to work with these files I want to work directly with some in the tests.
I have done a lot of Googling and I've been unable to find any examples of best practices for such a situation - everything I find seems to suggest mock data instead.
So, to be clear, I'd like to know the best practices for running RSpec tests against actual test data files and not against something mocked up in the test code its self. I'm perfectly happy opening files, reading them, etc., that's not the problem. What I'm really interested in is how best to structure my tests and test data directories.