[rspec-users] How do I mock out the before :login_required method?

2008-02-12 Thread Wes Shaddix
I have a GroupController class that inherits from a SecuredController which have a before filter (before_filter :login_required). This is using the restul authentication system. I want to mock out the login_required method so that my GroupController actions don't get redirected to /sessions/new

Re: [rspec-users] attachment_fu and story runner, any updates

2008-02-12 Thread Rick DeNatale
On 2/12/08, Ben Mabey <[EMAIL PROTECTED]> wrote: > I'll check it out when I get a chance. BTW, would you mind posting some > example code of how you are using the story runner in testing a > multi-part form? > require File.expand_path(File.dirname(__FILE__) + "/helper.rb") Test::Unit::TestCase.f

Re: [rspec-users] attachment_fu and story runner, any updates

2008-02-12 Thread Ben Mabey
Rick DeNatale wrote: > I've just submitted a rails patch > http://dev.rubyonrails.org/ticket/11091 > > This patches actionpack/lib/action_controller/integration.rb so that > post and put requests automatically get turned into multipart form > submission requests if they have a parameter or paramete

Re: [rspec-users] attachment_fu and story runner, any updates

2008-02-12 Thread Rick DeNatale
I've just submitted a rails patch http://dev.rubyonrails.org/ticket/11091 This patches actionpack/lib/action_controller/integration.rb so that post and put requests automatically get turned into multipart form submission requests if they have a parameter or parameters which are instances of TestUp

Re: [rspec-users] RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*

2008-02-12 Thread 21croissants
I have found the solution to my problem: I had to patch rspec_on_rails. See patch attached http://www.nabble.com/file/p15436545/rspec_on_rails_autotest_hook_exceptions_so_autotest_ignore_rails_folders.diff rspec_on_rails_autotest_hook_exceptions_so_autotest_ignore_rails_folders.diff Any questi

Re: [rspec-users] Using RSpec to Story Test Java code

2008-02-12 Thread Ola Bini
Robert Watkins wrote: > Hi, folks. > > I recently (ie on the weekend) came across RSpec, and knew it could be > the answer to a problem I was looking into - story testing Java code. > I've written up what I had to do to get it working at > http://twasink.net/blog/archives/2008/02/rspec_jruby_and

[rspec-users] Using RSpec to Story Test Java code

2008-02-12 Thread Robert Watkins
Hi, folks. I recently (ie on the weekend) came across RSpec, and knew it could be the answer to a problem I was looking into - story testing Java code. I've written up what I had to do to get it working at http://twasink.net/blog/archives/2008/02/rspec_jruby_and.html. Basically, I took the Account

Re: [rspec-users] Generated rspec video

2008-02-12 Thread Bart Zonneveld
On 12-feb-2008, at 6:32, [EMAIL PROTECTED] wrote: >>> Stuff for off-list: >>> - created with mencoder, I can play with mplayer. >>>Reports on success or failure of other players welcome. >> >> weird codec combo... you should have used thedora or xvid at >> least :-P >> (cannot play or even