diff --git a/app/models/article.rb b/app/models/article.rb index 27f669a..1a45595 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -278,7 +278,6 @@ class Article < ActiveRecord::Base :id, :profile_id, :parent_id, - :slug, :path, :updated_at, :created_at, diff --git a/test/unit/article_test.rb b/test/unit/article_test.rb index 452c849..459bccc 100644 --- a/test/unit/article_test.rb +++ b/test/unit/article_test.rb @@ -571,6 +571,12 @@ class ArticleTest < Test::Unit::TestCase assert_kind_of Folder, b end + should 'copy slug' do + a = fast_create(Article, :slug => 'slug123') + b = a.copy({}) + assert_equal a.slug, b.slug + end + should 'load article under an old path' do p = create_user('test_user').person a = p.articles.create(:name => 'old-name') -- libgit2 0.21.2