Sha256: 9eb56a0ad7e9bc58d5d52db3ce2c0f6cde506604daebd31fc086d142994ea87b
Contents?: true
Size: 561 Bytes
Versions: 8
Compression:
Stored size: 561 Bytes
Contents
require 'test_helper' class VariableMixinTest < MiniTest::Test def test_it_fetches_variables with_site(name: FIXTURES_DIR) do |site| site = Nanoc::Int::SiteLoader.new.new_from_cwd site.compile assert_equal VariableMixin.variables.keys, ['site'] assert_equal VariableMixin.variables['site']['data'].keys, %w(categories reusables variables) end end def test_it_fetches_datafiles file = VariableMixin.fetch_data_file('reusables.intro') assert_equal file['frontmatter_intro'], 'Here I am, in the front.' end end
Version data entries
8 entries across 8 versions & 1 rubygems