similar to: What are the various rspec test cases possible in this senario?

Displaying 20 results from an estimated 20000 matches similar to: "What are the various rspec test cases possible in this senario?"

2011 Mar 11
8
Help Regarding Amazon S3 and Career Wave along with Rspec
hello Guys, i would like to know some details regarding how to implement AMAZON S3 with Career Wave in Rails 3.0.3 and i have to write Rspec test Cases as well . Actually i already have code which is implemented with Career Wave its a image uploading code and i need to change that code on AMAZON S3. Can you guys help to me to make those changes and in writing RSpec test Cases.Its really important
2013 Sep 19
0
Performance problem generating URL for thousands of images, due to hitting HDD for each one
Hi, I have a model where I''m using Carrierwave to let users upload their avatars. I have one version for the avatar, cropped to a square called "cropped". class User mount_uploader :avatar, AvatarUploader end class AvatarUploader < ImageUploader version :cropped do process :crop end end In one of my pages, where I''m listing a few thousand users,
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody I''m currently reading through the Pragmatic Programmers RSpec book, and I really enjoy it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to work properly, so I tried it with a 1.8.7 installation, but there I had some other problems
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler. I just tried to use the following: script/generate uploader Avatar The following error is coming back: NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01. Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/ rails_generator/lookup.rb:234 . Couldn''t find
2007 Aug 14
2
AssociationTypeMismatch with RSpec 1.0.8, autotest running with drb
Before I chalk this up as a bug and report it, I just want to make sure I''m not doing something silly. Running ZenTest''s autotest on OS 10.4.10 with RSpec 1.0.8, drb, produces the following failed test: ActiveRecord::AssociationTypeMismatch in ''User should create an avatar with uploaded_data'' Avatar expected, got Avatar This only happens with that exact
2011 May 22
1
How do you crop an image with carrierwave 'after the fact' in rails?
What I''d like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the basic flow of how to create this functionality. However, I am not aware of the carrierwave
2011 Apr 06
2
Can i upgrade a project from rails 1.2.3 to rails 3.0.5 ?
hello, i have an application which is created in rails 1.2.3 and ruby 1.8.6 and now i have to upgrade it to rails 3.0.5 and ruby 1.8.7 ? is it possible? and if yes how ?? can you guys provide me with some kind of link or reference . Thanks Nishant -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
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
2012 Aug 29
2
Carrierwave Direct and additional form elements
I just switched a project from Dragonfly to Carrierwave, specifically to see if I could take advantage of Carrierwave Direct, which uploads large files directly to S3 or another cloud storage. I was able to make a form containing a single file field that would upload to S3. What I could not work out was how to upload the file to S3 AND other form elements to the model that had Carrierwave
2011 Oct 25
2
Did not find a test named RAW-*
Hi, I am facing problem while running RAW tests. When i run following command, i get the error stating "Did not find a test named RAW-*". Command :: root at nishant-ThinkCentre-A85:/home/nishan# smbtorture //nishant/base -Uuser1%base_ubuntu RAW-* using seed 1319521290 host=nishant share=base user=user1 myname=nishant-ThinkCentre-A85 Did not find a test named RAW-* Please help me
2011 Nov 10
0
Unable to execute raw tests using lxc-execute.
Hi, I have doubt in executing raw.write tests using lxc-execute. When I execute it without lxc-execute it works fine i.e it performs raw.write testing. command :: root at nishant:/home/nishant/Desktop/samba-4.0.0alpha15# bin/smbtorture //localhost/ubuntu -Ubase%base_system raw.write This command works fine. We can see the o/p of this also,
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
Hey ROR users, I have a small experimental web app which is for uploading files. The web app uses carrierwave, uploadify. It works fine on small size files. However, it can not handle large size files (>1G) efficiently. Then I decided using nginx upload module, it worked well on small size files after modification of codes,. But It fails on uploading large files (>1G) because of http error
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
Basically, I''m trying to crop multiple images out of a remote/original scene.. Think flickr ''tagging'', only, the pixs in the tagged boxes become their own unique images.. by way of simulating an upload from the controller using attachment fu.. can''t quite figure out the specific method in fu that would allow me to do this.. I''m so near the edge right
2010 Sep 01
1
Faking Paperclip has_attached_file with Factory girl?
Hello! I wonder if it''s possible to simulate Paperclip''s has_attached_file with Factory Girl and then test it with Rspec. I don''t get it to work. My factories.rb file looks like this: Factory.define :user do |user| user.name "Anders" user.email "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" user.password
2011 Aug 11
1
How to secure file access using Carrierwave + S3 hosted on Heroku
My site is hosted on Heroku and I am using Carrierwave to upload files to Amazon. How can i restrict file access based on roles? Is this possible? Using Devise and CanCan. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2013 Jun 21
0
Carrierwave large file optimization
Carrierwave documentation includes this tip for uploading large files. Inside your uploader, add these two methods (they say) def move_to_cache true end def move_to_store true end to make the uploads work more efficiently. This is true, it does work -- as long as you aren''t trying to do anything with versions or other processing. If you do, then the upload will only ever
2011 Sep 01
0
Encrypt/Decrypt files using Carrierwave to store in S3
Hi, I need to be able to encrypt files before storing them on S3, and then decrypt them when accessing them. The files will be images, documents, PDF, etc. I am using Carrierwave to handle the file upload and storage. I am storing them in Amazon S3. Has anyone done this, or have any ideas how this would be achieved? Thanks. -- You received this message because you are subscribed to the
2013 Feb 26
1
Store files with carrierwave to remote server (may be via ssh/scp)?
Im setting up production environment where all static content separated from web application server. I need to store all carrierwave powered content to another server, but by default carrierwave include only :file (for local files) and :fog (for cloud CDN) store support. How I can do that? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Jul 18
0
rails_admin & carrierwave
Hi to all.... Please help me =( I use rails_admin and I need to upload files with the help of it. I found carrierwave for it and installed it with the help of https://gist.github.com/884835. But It doesn''t work =( when i login in rails_admit? i see default text field instead field for choose a file, but this text field without CSS styles of rails_admin. I think, that my views, which i
2006 Mar 31
4
How to have a form within a form?
Say I am building a blogging platform, and I want to allow users to be able to add an avatar without leaving the page, when they''re writing a post. I need the avatar information to be included in the form for the post. So for example, after a user adds a new avatar while writing a new blog post, it would be available to be selected as the avatar to be used for that post. What is