Displaying 1 result from an estimated 1 matches for "somebodys_account".
2006 Jan 17
0
file_column with both root_path and store_dir
...> store_dir_method}
e = Entry.new
e.image = uploaded_file(file_path("kerb.jpg"), "image/jpeg",
"kerb.jpg")
assert File.exists?(e.image)
assert e.image !~ /\.\./, "#{e.image} is not a simple path"
assert_match %r{/u/file_column_db/somebodys_account/images},
e.image
end
def store_dir_method
File.join("somebodys_account", "images")
end
This fails with:
1) Failure:
test_absolute_path_outside_rails_root(ResourceTest) [test/unit/
resource_test.rb:254]:
<"/usr/home/ryenski/sites/my_app/somebodys_acco...