summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
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/integration/api_test
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/integration/api_test')
-rw-r--r--test/integration/api_test/wiki_pages_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb
index 73fd74137..1977b843b 100644
--- a/test/integration/api_test/wiki_pages_test.rb
+++ b/test/integration/api_test/wiki_pages_test.rb
@@ -104,7 +104,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
test "PUT /projects/:project_id/wiki/:title.xml should update wiki page" do
assert_no_difference 'WikiPage.count' do
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/CookBook_documentation.xml',
:params => {
@@ -128,7 +128,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
test "PUT /projects/:project_id/wiki/:title.xml with current versino should update wiki page" do
assert_no_difference 'WikiPage.count' do
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/CookBook_documentation.xml',
:params => {
@@ -153,7 +153,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
test "PUT /projects/:project_id/wiki/:title.xml with stale version should respond with 409" do
assert_no_difference 'WikiPage.count' do
- assert_no_difference 'WikiContent::Version.count' do
+ assert_no_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/CookBook_documentation.xml',
:params => {
@@ -172,7 +172,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
test "PUT /projects/:project_id/wiki/:title.xml should create the page if it does not exist" do
assert_difference 'WikiPage.count' do
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/New_page_from_API.xml',
:params => {
@@ -200,7 +200,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
set_tmp_attachments_directory
attachment = Attachment.create!(:file => uploaded_test_file("testfile.txt", "text/plain"), :author_id => 2)
assert_difference 'WikiPage.count' do
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/New_page_from_API.xml',
:params => {
@@ -228,7 +228,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
test "PUT /projects/:project_id/wiki/:title.xml with parent" do
assert_difference 'WikiPage.count' do
- assert_difference 'WikiContent::Version.count' do
+ assert_difference 'WikiContentVersion.count' do
put(
'/projects/ecookbook/wiki/New_subpage_from_API.xml',
:params => {