test a rake with fixtures

How do a test a rake task using fixtures? I've written yaml files for each fixture but I'm not sure how to test the rake using the fixtures.