File: tag_spec.rb

package info (click to toggle)
ruby-jekyll-last-modified-at 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 188 kB
  • sloc: ruby: 346; makefile: 4; sh: 3
file content (19 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

describe(Jekyll::LastModifiedAt::Tag) do
  let(:source) { @fixtures_path }
  let(:dest)   { source.join('_site') }
  let(:site)   do
    Site.new(Configuration::DEFAULTS.merge(
               'source' => source.to_s,
               'destination' => dest.to_s
             ))
  end
  subject { dest.join('file.txt').to_s }

  it 'understands happiness' do
    expect(File.read(subject)).to match(/12\-Sep\-14/)
  end
end