Commit 54b5de780725fcaa6a9d91e161d46e4519a90bb3
Committed by
Antonio Terceiro
1 parent
5d91f910
Exists in
master
and in
29 other branches
fixing migration bugs on cms controller
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
@@ -0,0 +1 @@ | @@ -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,7 +209,7 @@ class CmsControllerTest < Test::Unit::TestCase | ||
209 | file = profile.articles.find_by_path('test.txt') | 209 | file = profile.articles.find_by_path('test.txt') |
210 | assert_equal 'test.txt', file.name | 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 | assert_equal 2, file.versions(true).size | 214 | assert_equal 2, file.versions(true).size |
215 | end | 215 | end |