Sha256: 8df1df183b0cd29b5e64c6a50b8164b257fb309fcfbb06da474358dc1ec7e5ce
Contents?: true
Size: 416 Bytes
Versions: 37
Compression:
Stored size: 416 Bytes
Contents
require "rails_helper" RSpec.describe "PostTypeDecorator", :type => :routing do it "group url" do post_type = create_test_post_type(slug: 'test-post-type') expect(post_type.decorate.the_group_url).to include("/group/#{post_type.id}") end it "public url" do post_type = create_test_post_type(slug: 'test-post-type') expect(post_type.decorate.the_url).to include("/#{post_type.slug}") end end
Version data entries
37 entries across 37 versions & 1 rubygems