Sha256: c332ae9ec9c2d571004471fa4dbd482eb23514a035bd75cbef4aeeb7969aad04
Contents?: true
Size: 676 Bytes
Versions: 6
Compression:
Stored size: 676 Bytes
Contents
require 'test_helper' class VariablesTest < 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 NanocConrefFS::Variables.variables[:default].keys, ['site'] assert_equal NanocConrefFS::Variables.variables[:default]['site']['data'].keys, %w(categories reusables variables) end end def test_it_fetches_datafiles with_site(name: FIXTURES_DIR) do |site| file = NanocConrefFS::Variables.fetch_data_file('reusables.intro', :default) assert_equal file['frontmatter_intro'], 'Here I am, in the front.' end end end
Version data entries
6 entries across 6 versions & 1 rubygems