Skip to content

Commit

Permalink
Rename to metadata_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
waferbaby committed Jan 19, 2024
1 parent c98e382 commit 2d4a303
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# frozen_string_literal: true

describe Dimples::FrontMatter do
describe '#parse#' do
let(:parsed_contents) { described_class.parse(contents) }
class DummyClass
include Dimples::Metadata
end

describe Dimples::Metadata do
describe '#parse_front_matter' do
let(:dummy) { DummyClass.new }
let(:parsed_contents) { dummy.parse_front_matter(contents) }

context 'with frontmatter content' do
let(:contents) { "---\nname: Test\ncategories:\n- a\n- b\n---\n\nPost." }
Expand Down

0 comments on commit 2d4a303

Please sign in to comment.