Sha256: 1ccb9103105ea193d040897f2ef89224370f5e8be293fba847a60d969840bc56

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

require 'test_helper'

module Papercat
  class PageTest < ActiveSupport::TestCase
    test "uniq pathname" do
      Page.create!(data: {pathname: 'one', title: 'one', body: 'body'})
      page = Page.create(data: {pathname: 'one', title: 'one', body: 'body'})
      refute page.persisted?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papercat-0.0.2 test/models/papercat/page_test.rb