Sha256: db4d8bc8a6b02e1f04b7b764819d5dd87049c0f4f0ac4828e6b3da7f3ed3081e

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

RSpec.describe JekyllRedirectFrom::Context do
  subject { described_class.new(site) }

  it "stores the site" do
    expect(subject.site).to be_a(Jekyll::Site)
  end

  it "returns the register" do
    expect(subject.registers).to have_key(:site)
    expect(subject.registers[:site]).to be_a(Jekyll::Site)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-redirect-from-0.16.0 spec/jekyll_redirect_from/context_spec.rb
jekyll-redirect-from-0.15.0 spec/jekyll_redirect_from/context_spec.rb
jekyll-redirect-from-0.14.0 spec/jekyll_redirect_from/context_spec.rb
jekyll-redirect-from-0.13.0 spec/jekyll_redirect_from/context_spec.rb