Sha256: f72c6ae09fa53a8297714bf66aa0987c973036c4223c13ace256462fcd0f4067

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'

describe("Integration Tests") do
  it "writes the redirect pages for collection items which are outputted" do
    expect(@dest.join("articles", "redirect-me-plz.html")).to exist
    expect(@dest.join("articles", "23128432159832", "mary-had-a-little-lamb")).to exist
  end

  it "doesn't write redirect pages for collection items which are not outputted" do
    expect(@dest.join("authors")).not_to exist
    expect(@dest.join("kansaichris")).not_to exist
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bunto-redirect-from-5.0.0 spec/integrations_spec.rb
bunto-redirect-from-4.0.0 spec/integrations_spec.rb
bunto-redirect-from-3.0.0 spec/integrations_spec.rb
bunto-redirect-from-2.0.0 spec/integrations_spec.rb
bunto-redirect-from-1.0.0 spec/integrations_spec.rb