Cucumber + Paperclip

Hello Friends,
First time I am writing a scenario for uploading images. But some how things are not working as it should be
The cucumber scenario is
And I attach the file at “/home/user/Desktop/sdasd.png” to “avatar”
And I press “Upload Logo”
But I trace it. its showing up
avatar_file_name: “sdasd.png”, avatar_content_type: “text/plain”, in Database where content type is png :frowning:

Is there any thing which I need to do or is there any thing m missing…

Thanks
Abhis

http://thefrontiergroup.com.au/blog/2009/06/testing-file-uploads-with-webrat-and-paperclip/

Best regards

Peter De Berdt