search for: videoscontroller

Displaying 6 results from an estimated 6 matches for "videoscontroller".

2007 Oct 11
2
Login testing ideas
I''ve been going through Pat''s example story and noticed that there was no checking for a bad login. I assume this is because that would have made the article bigger and more complicated than it needed to be. So the question that comes of of this is: How do folks normally handle the negative case? My plan was to just use another scenario, but as a new person to BDD/TDD,
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
...Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts ''hi'' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures: 1) VideosController new exposes request and response before and after the action Failure/Error: Unable to find matching line from backtrace NoMethodError: undefined method `request'' for nil:NilClass # /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/whin...
2008 Jun 09
10
Testing file attachment with Paperclip
...o 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) RightAws::AwsError in ''VideosController should create a valid Video'' AWS access keys are required to operate on S3 /Users/ngw/zooppa-4/app/controllers/videos_controller.rb:6:in `create'' /Users/ngw/zooppa-4/spec/controllers/videos_controller_spec.rb:17: Maybe I missed something ? TIA, ngw -------------- next part --...
2008 May 22
3
SOAP client in Ruby/Rails
Hi all. I have a need to build a SOAP client using Ruby and Rails. I''m accessing a document/literal style SOAP service. I''ve been poring over documentation (well, there really doesn''t seem to be any, so that''s a little misleading), blog posts, and outdated tutorials all day, and I still don''t really have anywhere to begin. Every tutorial seems to have a
2007 Jan 15
2
Help with with displaying a selected list.
...r> </table> <%= link_to ''Previous page'', { :page => @video_pages.current.previous } if @video_pages.current.previous %> <%= link_to ''Next page'', { :page => @video_pages.current.next } if @video_pages.current.next %> Controller class VideosController < ApplicationController def index list render :action => ''list'' end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) verify :method => :post, :only => [ :destroy, :create, :update ], :redirect_to => { :action =&g...
2010 Mar 20
0
Problem with videos on heroku
Hi, I have recently moved my RoR app on the Heroku platform, and almost everything works fine apart from the videos. It works fine when my app runs in local but not on heroku. This is the error log I''m getting, if anyone knows where it can be coming from: Processing VideosController#new (for IP at 2010-03-20 04:32:09) [GET] Session ID: 6abecf60c3369d7c7029e366bb801e08 Parameters: {"artist_id"=>"10", "action"=>"new", "controller"=>"admin/videos"} Rendering within layouts/admin Rendering admin/videos/new...