Sha256: 78a5432930e67269e8c22dae0ec3ea5fe873025d533f0e0e609434543ca66d99
Contents?: true
Size: 491 Bytes
Versions: 5
Compression:
Stored size: 491 Bytes
Contents
require 'citeproc/js' module Fixtures ROOT = File.expand_path('../fixtures', __FILE__) def load(fixture) File.open(File.join(ROOT,fixture), 'r:UTF-8').read end def load_locale(locale) load("locales/locales-#{locale}.xml") end def load_style(style) load("styles/#{style}.csl") end def load_items(items) MultiJson.decode(load("items/#{items}.json"), :symbolize_keys => true) end end RSpec.configure do |config| config.include(Fixtures) end
Version data entries
5 entries across 5 versions & 1 rubygems