Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thechrisoshow/125281 to your computer and use it in GitHub Desktop.
Save thechrisoshow/125281 to your computer and use it in GitHub Desktop.
# 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