Sha256: 36f61ff076ab4d91c227c72422f92b003f9d99a5a774250b6292d145c2d56233
Contents?: true
Size: 408 Bytes
Versions: 5
Compression:
Stored size: 408 Bytes
Contents
def test_data file content = '' file_path = File.expand_path(File.join('.', 'app', 'test_data', "#{file}.yml")) raise "Can not find #{file}.yml" unless File.exists?(file_path) File.open(file_path, 'r') do |handle| content = handle.read end Psych.load ERB.new(content).result(binding) end <% require 'active_support/all' %> $navi = <%= app_name.camelize %>Navigator.new $config
Version data entries
5 entries across 5 versions & 1 rubygems