Created
January 19, 2010 10:42
-
-
Save hasham2/280837 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Add more helper methods to be used by all tests here... | |
| def load_xml_fixture_file(name) | |
| path = RAILS_ROOT + "/test/fixtures/#{name}.xml" | |
| if File.exists?(path) | |
| contents = "" | |
| File.open(path).each do |line| | |
| contents << line | |
| end | |
| return contents | |
| else | |
| return nil | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment