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