Created
May 14, 2009 00:51
-
-
Save rgo/111405 to your computer and use it in GitHub Desktop.
how to send a multipart post?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "should create photo" do | |
assert_difference('Photo.count') do | |
post :create, :album_id => albums(:gallery_one_one).to_param, :photo => {:name => 'photo_fooooo', :description => 'bar', :image => fixture_file_upload('rails.png')} | |
end | |
assert_redirected_to admin_album_photos_path(assigns(:album)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment