Last active
December 19, 2015 08:49
-
-
Save kbarber/5928903 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
| FIXTURE_DIR = File.join(File.expand_path(File.dirname(__FILE__)), "fixtures") unless defined?(FIXTURE_DIR) | |
| module LocalHelpers | |
| def fixture_read(file) | |
| File.read(File.join(FIXTURE_DIR, file)) | |
| end | |
| end | |
| RSpec.configure do |c| | |
| c.include LocalHelpers | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment