Commit 54b5de780725fcaa6a9d91e161d46e4519a90bb3

Authored by Leandro Santos
Committed by Antonio Terceiro
1 parent 5d91f910

fixing migration bugs on cms controller

test/fixtures/files/test_another.txt 0 → 100644
... ... @@ -0,0 +1 @@
  1 +this is another sample text file
... ...
test/functional/cms_controller_test.rb
... ... @@ -209,7 +209,7 @@ class CmsControllerTest < Test::Unit::TestCase
209 209 file = profile.articles.find_by_path('test.txt')
210 210 assert_equal 'test.txt', file.name
211 211  
212   - post :edit, :profile => profile.identifier, :id => file.id, :article => { :uploaded_data => fixture_file_upload('/files/test.txt', 'text/plain')}
  212 + post :edit, :profile => profile.identifier, :id => file.id, :article => { :uploaded_data => fixture_file_upload('/files/test_another.txt', 'text/plain')}
213 213  
214 214 assert_equal 2, file.versions(true).size
215 215 end
... ...