search for: image_file_nam

Displaying 9 results from an estimated 9 matches for "image_file_nam".

Did you mean: image_file_name
2013 Jan 18
6
[PATCH v1 01/02] HVM firmware passthrough libxl support
This patch introduces support for two new parameters in libxl: smbios_firmware=<path_to_smbios_structures_file> acpi_firmware=<path_to_acpi_tables_file> The changes are primarily in the domain building code where the firmware files are read and passed to libxc for loading into the new guest. After the domain building call to libxc, the addresses for the loaded blobs are returned and
2011 Aug 04
3
#create tests fail when I add FriendlyId to my model
...ug => true, :approximate_ascii => true Here''s the test (using mocha): def test_create_valid Brand.any_instance.stubs(:valid?).returns(true) post :create assert_redirected_to brand_url(assigns(:brand)) end Here''s the fixture: one: name: MyString image_file_name: MyString image_content_type: MyString image_file_size: 1 image_updated_at: 2011-08-03 10:49:03 tease: MyText description: MyText All other tests pass, and if I comment out has_friendly_id, the create tests pass as well. Does this ring any bells for anyone? Thanks in advance, W...
2008 Jun 09
10
Testing file attachment with Paperclip
Does someone have an example on faking a file upload for just ensuring it gets called, without actually uploading the file to s3. I thought that stubbing Model.has_attached_file would be enough, but it doesn''t seem so ... This is what I did: Video.stub!( :has_attached_file ).with( :name ).and_return( true ) has_attached_file is from paperclip, it gets mixed to the model. 1)
2009 Jul 07
2
paperclip unit testing
Hi, Rails 2.3.2, paperclip 2.2.9.2 How can I unit test my model that has a paperclip attachment? I add to my model: --- CODE START --- has_attached_file :image, :default_url => '''' attr_protected :image_file_name, :image_content_type, :image_image_size --- CODE END --- Than I type a UNIT test: --- CODE START --- foo=FooModel.new({:image => File.new(''test/fixtures/img/an_image.gif'')}) --- CODE END --- This works fine until... in that model I have a validator that accesses the "i...
2006 Dec 30
2
Another RSpec on Rails issue: how to test send_file()
Hi! Today I needed to implement some controller code, that uses send_file() to send image data. How can this be tested / specified with RSpec? bye, Tobias
2013 Feb 01
2
[PATCH v2 02/03] HVM firmware passthrough libxl support
This patch introduces support for two new parameters in libxl: smbios_firmware=<path_to_smbios_structures_file> acpi_firmware=<path_to_acpi_tables_file> The changes are primarily in the domain building code where the firmware files are read and passed to libxc for loading into the new guest. After the domain building call to libxc, the addresses for the loaded blobs are returned and
2009 Jan 29
0
Xen3.4-unstable pass through NIC - problems with creating HVM domainU
...# Kernel image file. kernel = "/usr/lib/xen/boot/hvmloader" # The domain build function. HVM domain uses ''hvm''. builder=''hvm'' # Initial memory allocation (in megabytes) for the new domain. memory = 128 disk = [ ''file:/home/srini/image_file_name.img,hda,w'', ''file:/home/srini/os-images/SLES-10-SP1-x86_64-DVD1.iso,hdc:cdrom,r'' ] vnc=1 Var/log/xen/Qemu-dm-ExampleHVMDomain.log ------------------------------------------------------------ domid: 3 qemu: the number of cpus is 1 Watching /local/domain/0/devi...
2009 Apr 01
1
Paperclip - how to display images that were not uploaded?
I''m using Paperclip plugin to store images in my application. In the database I have columns like: image_file_name, image_content_type, image_file_size. When I upload an image via form, everything works well. But when I put filename directly into the database and place properly named image in the place expected, the image doesn''t appear on the webpage. Even if I just rename uploaded file and accordin...
2005 Dec 29
3
Storage for images: Database BLOBs or files?
I can''t decide where store images for my Rails application. -- Posted via http://www.ruby-forum.com/.