RSpec::FileFixtures provides convenient and consistent access to fixture data in RSpec.
Add the following to your
Gemfile in your
gem 'rspec-file_fixtures', '~> 0.1.6'
Enable the RSpec extension is your spec helper:
Use the provided
fixture helper anywhere in your tests to load content from
See the Usage section for available extensions.