similar to: file upload in an integration test

Displaying 20 results from an estimated 60000 matches similar to: "file upload in an integration test"

2008 Mar 02
1
(Noob) Image upload: rename file
Hi! I''m building an app where the user can upload images. this works fine and the uploaded file is copied from the temp directory to an MerbRoot/uploads/id directory. my problem is that the filename is something like Merb.5288.0. How can I rename it? my model is available at pastie.<http://pastie.caboo.se/160143> I''m sure this question is not too sophisticated (-; regards
2005 Nov 09
1
Enterprise Integration with Ruby - Beta book
I saw this mentioned on Dave Thomas''s blog http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/EIR.html and don''t remember having seen it announced on this mailing list. This new Beta Book is at http://pragmaticprogrammer.com/titles/fr_eir/index.html regards Justin
2012 Feb 13
11
stale records with integration testing?
Hi, I was writing an integration test for my user signup form (with capybara), and found that my test was failing due to a validation error: "email is already taken". I''m a bit confused because I thought when I run "rspec spec/some_spec.rb", the test database would be wiped clear? Is that not the case? Patrick J. Collins http://collinatorstudios.com
2006 Jan 29
11
HTML Output plugin
I have written a very small Rails plugin which makes it spit HTML back at you instead of XHTML. Find details here: http://dev.turnipspatch.com/trac/wiki/HTMLOutput Hope it''s useful to someone! Jon -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
0
possible file upload bug in integration test
I created an integrations test that attempted to uploade a file as follows: def uploaded_file(path, content_type="application/octet-stream", filename=nil) filename ||= File.basename(path) t = Tempfile.new(filename) FileUtils.copy_file(path, t.path) (class << t; self; end;).class_eval do alias local_path path define_method(:original_filename) {
2007 Mar 30
3
example code for file upload
I have an archiving application that handles large file uploads. I already use backgroundrb to run a behind the scenes bulk import of records. All good. Thank you Ezra. Now I would like to add long running file uploads to the things that backgroundrb does for me. That''s right that ole chestnut. I''ve seen a lot of mention of this practice around the web, but have yet
2007 Dec 11
14
Attachment-fu + Story Runner
Hi all, I''m trying to run a Story Runner integration test that uploads a file through Attachment-fu. I''ve tried various ways of specifying the file data, from custom mocks: class MockFile < Struct.new (:original_filename, :read, :content_type); end fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain" to
2012 Jul 30
3
[LLVMdev] RFC: Staging area proposal for new backends
On Fri, Jul 27, 2012 at 10:54:21PM -0400, Justin Holewinski wrote: > On Jul 27, 2012, at 7:05 PM, Chris Lattner <clattner at apple.com> wrote: > > > On Jul 27, 2012, at 1:39 PM, Tom Stellard wrote: > >> > >>> We also need to come up with a plan regarding cutting releases. When > >>> 3.2 is branched, will all "staged" back-ends be
2002 Mar 06
3
printing with lprng
I recently set up samba-2.2.3a on FreeBSD 4.5-RELEASE. I'm having troubles getting printing to work. I have LPRng-3.76 installed, and it works just fine using the command line tools. When I print from a windows client over smb, however, I can see the job go into the spool directory, but then it magically vanishes, with nothing in any log files. Has anyone experienced this type of strange
2013 Jun 05
2
[LLVMdev] [NVPTX] We need an LLVM CUDA math library, after all
Thanks for the info! I would be glad to hear of any issues you have encountered on this path. I tried to make sure the 3.3 release was fully compatible with the libdevice implementation shipping with 5.5 (and as far as I know, it is). It's just not an officially supported configuration. Also, I've been meaning to address your -drvcuda issue. How would you feel about making that a part
2020 Mar 27
2
making sense of the stats
Hi, Robert. I appreciate the explanation. Indeed, the terminology is not consistent or intuitive. So by your "4 services" you mean _sources_? If clients are source connections (one and the same?), then how do we reconcile limits for both clients and sources? Is it like saying, 'for all of the X sources, they can have a total of Y connections'? How can I set limits on the
2011 Jul 25
7
Adding a folder to my rspec execution path
Hi guys, I''m using RSpec with Capybara, and for that I created the spec/integration folder. But when I execute the command "bundle exec rspec spec" RSpec don''t execute my files on integration folder. I need to pass each file to solve this problem. Do you known how I can put the integration folder on rspec execution path without need to pass each file? Thanks, Pablo
2013 Jun 05
0
[LLVMdev] [NVPTX] We need an LLVM CUDA math library, after all
Dear all, FWIW, I've tested libdevice.compute_20.10.bc and libdevice.compute_30.10.bc from /cuda/nvvm/libdevice shipped with CUDA 5.5 preview. IR is compatible with LLVM 3.4 trunk that we use. Results are correct, performance - almost the same as what we had before with cicc-sniffed IR, or maybe <10% better. Will test libdevice.compute_35.10.bc once we will get K20 support. Thanks for
2013 Feb 11
2
[LLVMdev] Emulating an infinite register file in the backend
Hi Justin and all, you've mentioned that you used an easy "trick" for defining an infinite register file in the backend. Does this involve defining a single dummy register, and then adding this dummy reg to each register class? Is anything more needed? I refer to the RegisterInfo.td file, as e.g: llvm-3.0.src/lib/Target/PTX/PTXRegisterInfo.td I'm (just starting)
2013 Feb 17
0
[LLVMdev] [NVPTX] We need an LLVM CUDA math library, after all
The X86 back-end just calls into libm: // Always use a library call for pow. setOperationAction(ISD::FPOW , MVT::f32 , Expand); setOperationAction(ISD::FPOW , MVT::f64 , Expand); setOperationAction(ISD::FPOW , MVT::f80 , Expand); The issue is really that there is no standard math library for PTX. I agree that this is a pain for most users, but I
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below this is ma controlller method to upload def save_imports Contactslist.save(params[:list]) render :text => "File uploaded successfully" this is ma view file .remote - form_for(@list, :url=> save_imports_list_path(@list, :format => "js"), :html => { :multipart => true,
2006 Aug 15
6
Net::LDAP 0.0.4 released
Announcing version 0.0.4 of Net::LDAP, the pure-Ruby LDAP library. Thanks to the many people who have used this library and sent in comments, suggestions, feature requests, and patches. An even bigger thank-you to the folks who have made themselves available to help with testing. Net::LDAP has been quite stable for several months now, so we bumped the development status of the library up to
2011 Dec 08
0
[LLVMdev] PTX builtin functions.
On Thu, Dec 8, 2011 at 11:36 AM, Villmow, Micah <Micah.Villmow at amd.com>wrote: > It is my understanding that all you need to do is specify let isTarget = > 1 in your .td file and it will generate target specific intrinsics. This > should allow you to keep the IntrinsicsPTX.td file in the same location. > So we keep the intrinsics defined in include/llvm/IntrinsicsPTX.td?
2013 Feb 17
2
[LLVMdev] [NVPTX] We need an LLVM CUDA math library, after all
> The issue is really that there is no standard math library for PTX. Well, formally, that could very well be true. Moreover, in some parts CPU math standard is impossible to accomplish on parallel architectures, consider, for example errno behavior. But here we are speaking more about practical side. And the practical side is: past 5 years CUDA claims to accelerate compute applications, and
2007 May 18
4
No return status from mongrel upload progress (and thus no updates on the bar)
Hi all, I''m using Boxroom (http://boxroom.rubyforge.org/) and trying to get upload progress working. I''ve also been testing the sample code at http://itblog.mcgeecorp.com/2007/5/15/mongrel-upload-progress-demo/. I run a Mongrel cluster, and so am using drb (as per http://mongrel.rubyforge.org/docs/upload_progress.html). Starting up rails, I get lots of useful-sounding output: