Displaying 2 results from an estimated 2 matches for "userassetscontrol".
2007 May 26
11
RSpec
Hi RSpec Mailing list,
I''m new to RSpec and I am trying to get it running with the caboo.se sample
rails app.
I installed the current version of rspec with rspec_on_rails
I tried to run rake spec but received:
330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec
(in /Users/multimedia/Desktop/restful_auth_rspec)
2007 Sep 26
0
[Story] passing a file using post
...n code.
When I try to do the following:
When "creating a new asset named",
File.open(''/Users/multimedia/desktop/sample/assets/bridge.jpg'')
do |path|
post_via_redirect "/users/#{@user.login}/assets", :asset => {
:uploaded_data => path }
end
Processing UserAssetsController#create (for 127.0.0.1 at 2007-09-26
14:49:10) [POST]
Session ID: d7b173a79b7f1382dc3b037c73608233
Parameters: {"action"=>"create", "controller"=>"user_assets",
"user_id"=>"Andrew", "asset"=>{"uploaded_data...