Sha256: b5fe29f904d3852f2fc75955c08beda368f9c22aab87e31a78d3aae955c1d049

Contents?: true

Size: 453 Bytes

Versions: 30

Compression:

Stored size: 453 Bytes

Contents

require 'rails_helper'
describe "Posttype frontend", js: true do
  before(:each) do
    @site = create(:site).decorate
    @post = @site.the_post('sample-post').decorate
    @post_type = @post.post_type.decorate
  end

  it 'public uri with group structure' do
    expect(@post_type.the_group_url(as_path: true)).to include("/group/#{@post_type.id}")
  end

  it "public url" do
    expect(@post_type.the_url).to include("/#{@post_type.slug}")
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
camaleon_cms-2.6.4 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.6.3 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.6.2 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.6.1 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.6.0.1 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.6.0 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.5.3.1 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.5.3 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.5.2 spec/features/frontend/post_type_spec.rb
camaleon_cms_rails6-2.5.0 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.5.1 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.5.0 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.9 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.8 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.7 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.6 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.5 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.4 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.3 spec/features/frontend/post_type_spec.rb
camaleon_cms-2.4.6.2 spec/features/frontend/post_type_spec.rb