24 lines
474 B
Ruby
24 lines
474 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 @drop.respond_to?(:key?)
|
|
end
|
|
|
|
should "find a key if it's in the collection of the drop" do
|
|
assert @drop.key?("thanksgiving")
|
|
end
|
|
end
|
|
end
|