summaryrefslogtreecommitdiffstats
path: root/test/unit/wiki_content_version_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-26 16:41:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-26 16:41:06 +0000
commit71423af0b2029922fe1de50bf3b7ccc2315d2e91 (patch)
tree8fa56fc6a36a359bb5ceab4cb2383d7084e2a360 /test/unit/wiki_content_version_test.rb
parent1b1a9b6ed58cdda462d9faab46642c11f20c2e15 (diff)
downloadredmine-71423af0b2029922fe1de50bf3b7ccc2315d2e91.tar.gz
redmine-71423af0b2029922fe1de50bf3b7ccc2315d2e91.zip
Get rid of acts_as_versioned.
WikiContent::Version becomes WikiContentVersion. git-svn-id: http://svn.redmine.org/redmine/trunk@16889 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/wiki_content_version_test.rb')
-rw-r--r--test/unit/wiki_content_version_test.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/wiki_content_version_test.rb b/test/unit/wiki_content_version_test.rb
index d6fe0a556..9252e3a9c 100644
--- a/test/unit/wiki_content_version_test.rb
+++ b/test/unit/wiki_content_version_test.rb
@@ -24,24 +24,24 @@ class WikiContentVersionTest < ActiveSupport::TestCase
end
def test_should_respond_to_attachments
- v = WikiContent::Version.find(2)
+ v = WikiContentVersion.find(2)
assert v.respond_to?(:attachments)
end
def test_destroy
- v = WikiContent::Version.find(2)
+ v = WikiContentVersion.find(2)
- assert_difference 'WikiContent::Version.count', -1 do
+ assert_difference 'WikiContentVersion.count', -1 do
v.destroy
end
end
def test_destroy_last_version_should_revert_content
- v = WikiContent::Version.find(3)
+ v = WikiContentVersion.find(3)
assert_no_difference 'WikiPage.count' do
assert_no_difference 'WikiContent.count' do
- assert_difference 'WikiContent::Version.count', -1 do
+ assert_difference 'WikiContentVersion.count', -1 do
assert v.destroy
end
end
@@ -57,13 +57,13 @@ class WikiContentVersionTest < ActiveSupport::TestCase
end
def test_destroy_all_versions_should_delete_page
- WikiContent::Version.find(1).destroy
- WikiContent::Version.find(2).destroy
- v = WikiContent::Version.find(3)
+ WikiContentVersion.find(1).destroy
+ WikiContentVersion.find(2).destroy
+ v = WikiContentVersion.find(3)
assert_difference 'WikiPage.count', -1 do
assert_difference 'WikiContent.count', -1 do
- assert_difference 'WikiContent::Version.count', -1 do
+ assert_difference 'WikiContentVersion.count', -1 do
assert v.destroy
end
end