jekyll/test/test_site_drop.rb

24 lines
470 B
Ruby

# frozen_string_literal: true
require "helper"
class TestSiteDrop < JekyllUnitTest
context "a site drop" do
setup do
@site = fixture_site(
"collections" => ["thanksgiving"]
)
@site.process
@drop = @site.to_liquid.site
end
should "respond to `key?`" do
assert_respond_to @drop, :key?
end
should "find a key if it's in the collection of the drop" do
assert @drop.key?("thanksgiving")
end
end
end