From 54b5de780725fcaa6a9d91e161d46e4519a90bb3 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Sun, 21 Jun 2009 20:48:28 -0300 Subject: [PATCH] fixing migration bugs on cms controller --- test/fixtures/files/test_another.txt | 1 + test/functional/cms_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/files/test_another.txt diff --git a/test/fixtures/files/test_another.txt b/test/fixtures/files/test_another.txt new file mode 100644 index 0000000..2139648 --- /dev/null +++ b/test/fixtures/files/test_another.txt @@ -0,0 +1 @@ +this is another sample text file diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 8a3e07a..9313153 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -209,7 +209,7 @@ class CmsControllerTest < Test::Unit::TestCase file = profile.articles.find_by_path('test.txt') assert_equal 'test.txt', file.name - post :edit, :profile => profile.identifier, :id => file.id, :article => { :uploaded_data => fixture_file_upload('/files/test.txt', 'text/plain')} + post :edit, :profile => profile.identifier, :id => file.id, :article => { :uploaded_data => fixture_file_upload('/files/test_another.txt', 'text/plain')} assert_equal 2, file.versions(true).size end -- libgit2 0.21.2