Created
June 7, 2009 10:57
-
-
Save thechrisoshow/125281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turns a fixture file name into a full path | |
def fixture_file(filename) | |
return '' if filename == '' | |
ERB.new(File.read(File.expand_path(RAILS_ROOT + '/spec/fixtures/' + filename))).result(binding) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment