Sha256: 00b10387cb2e0d4fe18a017f98e95797a9bad2571d73d6fc0d2bbbcdd210df47

Contents?: true

Size: 534 Bytes

Versions: 18

Compression:

Stored size: 534 Bytes

Contents

require 'spec_helper'

describe Alchemy::LegacyPageUrl do
  let(:page) { build_stubbed(:page) }

  let(:page_url_with_parameters) do
    Alchemy::LegacyPageUrl.new(urlname: 'index.php?id=2', page: page)
  end

  let(:valid_page_url) do
    Alchemy::LegacyPageUrl.new(urlname: 'my/0-work+is-nice_stuff', page: page)
  end

  it 'is only valid with correct urlname format' do
    expect(valid_page_url).to be_valid
  end

  it 'is also valid with get parameters in urlname' do
    expect(page_url_with_parameters).to be_valid
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.3 spec/models/legacy_page_url_spec.rb
lc_alchemy_cms-3.2.1 spec/models/legacy_page_url_spec.rb
lc_alchemy_cms-3.2.0 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.2.0 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.2.0.rc1 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.2.0.beta spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.1 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.rc3 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.rc2 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.rc1 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta6 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta5 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta4 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta3 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta2 spec/models/legacy_page_url_spec.rb
alchemy_cms-3.1.0.beta1 spec/models/legacy_page_url_spec.rb