Sha256: acc2638d7450d877cd1e0df3f5a40a39e3c5ac0647670c24732387c32af332ed
Contents?: true
Size: 526 Bytes
Versions: 8
Compression:
Stored size: 526 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 valid_page_url.should be_valid end it 'is also valid with get parameters in urlname' do page_url_with_parameters.should be_valid end end
Version data entries
8 entries across 8 versions & 1 rubygems