Module: Pyrite::Helpers
- Included in:
- PyriteTest
- Defined in:
- lib/pyrite/helpers.rb
Instance Method Summary collapse
-
#fixture(filename) ⇒ Object
Easily get the path to a fixture file from Rails.root/test/fixtures/<filename>.
Instance Method Details
#fixture(filename) ⇒ Object
Easily get the path to a fixture file from Rails.root/test/fixtures/<filename>
5 6 7 |
# File 'lib/pyrite/helpers.rb', line 5 def fixture(filename) File.join(Rails.root,'test','fixtures', filename) end |