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