summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-05-15 05:51:14 +0000
committerGo MAEDA <maeda@farend.jp>2021-05-15 05:51:14 +0000
commitec3527102deb7dafa34ca74ccc9e79e02f233eb9 (patch)
tree14b83cf710a24d0a7c590eba1c6fff212509dcd9 /test/unit
parent4740307f11f4754df2970a75e83c16b87a71067c (diff)
downloadredmine-ec3527102deb7dafa34ca74ccc9e79e02f233eb9.tar.gz
redmine-ec3527102deb7dafa34ca74ccc9e79e02f233eb9.zip
Remove deprecated WikiContent::Version (#35031).
git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/activity_test.rb2
-rw-r--r--test/unit/project_test.rb2
-rw-r--r--test/unit/user_test.rb2
-rw-r--r--test/unit/wiki_page_test.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb
index 8f6ee879d..d411a967d 100644
--- a/test/unit/activity_test.rb
+++ b/test/unit/activity_test.rb
@@ -128,7 +128,7 @@ class ActivityTest < ActiveSupport::TestCase
end
def test_event_group_for_wiki_content_version
- content = WikiContent::Version.find(1)
+ content = WikiContentVersion.find(1)
assert_equal content.page, content.event_group
end
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index b154e6b90..2c23feb83 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -287,7 +287,7 @@ class ProjectTest < ActiveSupport::TestCase
assert_equal 0, Wiki.count
assert_equal 0, WikiPage.count
assert_equal 0, WikiContent.count
- assert_equal 0, WikiContent::Version.count
+ assert_equal 0, WikiContentVersion.count
assert_equal 0, Project.connection.select_all("SELECT * FROM projects_trackers").count
assert_equal 0, Project.connection.select_all("SELECT * FROM custom_fields_projects").count
assert_equal 0, CustomValue.where(:customized_type => ['Project', 'Issue', 'TimeEntry', 'Version']).count
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index ab1fe56ab..c395bb310 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -425,7 +425,7 @@ class UserTest < ActiveSupport::TestCase
:start_page => 'Start'))
)
wiki_content.text = 'bar'
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
wiki_content.save!
end
diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb
index e6d1f604d..765747388 100644
--- a/test/unit/wiki_page_test.rb
+++ b/test/unit/wiki_page_test.rb
@@ -199,7 +199,7 @@ class WikiPageTest < ActiveSupport::TestCase
end
def test_diff_for_page_with_deleted_version_should_pick_the_previous_available_version
- WikiContent::Version.find_by_page_id_and_version(1, 2).destroy
+ WikiContentVersion.find_by_page_id_and_version(1, 2).destroy
page = WikiPage.find(1)
diff = page.diff(3)