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