Skip to content

Instantly share code, notes, and snippets.

@kbarber
Last active December 19, 2015 08:49
Show Gist options
  • Select an option

  • Save kbarber/5928903 to your computer and use it in GitHub Desktop.

Select an option

Save kbarber/5928903 to your computer and use it in GitHub Desktop.
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