Files
jekyll/test/test_site_drop.rb
Frank Taillandier 8c8326e9ab style: enable new cops (#8538)
Merge pull request 8538
2021-01-12 18:39:41 -05:00

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