Sha256: 8e2ea1fbc3502601c12203d71716039b99c45d163d47113932efbe2232374127
Contents?: true
Size: 396 Bytes
Versions: 9
Compression:
Stored size: 396 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
9 entries across 9 versions & 2 rubygems