Sha256: 774b9dee11ec2eb9ab5cfdf00b1999b3568229121888d11488f63e61c1be96b3

Contents?: true

Size: 407 Bytes

Versions: 62

Compression:

Stored size: 407 Bytes

Contents

require 'test_helper'

module Workarea
  class FindUniqueSlugTest < TestCase
    def test_slug
      page = create_page(name: 'Foo Bar')
      assert('foo-bar', FindUniqueSlug.new(page, 'foo-bar').slug)
      assert('foo-bar-1', FindUniqueSlug.new(create_page, 'foo-bar').slug)

      create_page(name: 'Foo Bar')
      assert('foo-bar-2', FindUniqueSlug.new(create_page, 'foo-bar').slug)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.26 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.45 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.25 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.23 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.44 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.22 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.43 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.21 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.42 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.20 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.41 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.19 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.40 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.18 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.39 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.17 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.38 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.5.16 test/queries/workarea/find_unique_slug_test.rb
workarea-core-3.4.37 test/queries/workarea/find_unique_slug_test.rb