[rspec-users] stubbing a method that yeilds sequential results

2007-08-12 Thread rupert
ime and not sequentially. I can't see how to stub a method to yield sequential results so I can spec the behavior for different scenarios of similarities between subsequent results. Is it possible to do this? Any help would be much appreciated Cheers Rupert ___

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-08-12 Thread rupert
On 12 Aug 2007, at 14:38, David Chelimsky wrote: > On 8/12/07, rupert <[EMAIL PROTECTED]> wrote: >> I've just found myself stuck trying to rspec something so am hoping >> someone more knowledgable can help. >> >> I have a Connector class which has a class m

Re: [rspec-users] (no subject)

2007-08-14 Thread rupert
vior driven approach be that you would test the enumerable behavior you wish the class to exhibit rather than the implementation of enabling this behavior by including the enumerable module. Cheers Rupert ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [rspec] looking for a simple refresher

2007-08-17 Thread rupert
what's in the create method of the controller?? you've only given the contents of the new method - and without knowing what you want it to do it's hard to know what will work. Assuming it's the normal def create @ticket = Ticket.new(params(:ticket]) if @ticket.save etc etc end the

Re: [rspec-users] [rspec] looking for a simple refresher

2007-08-17 Thread rupert
of sense. That 'new' word threw me off. My create method is slightly more complex and I'm not sure how to spec it. def create @user = User.find(params[:user_id]) @ticket = @ user.tickets.build(params[:ticket]) if @ticket.save redirect_to tickets_path else

Re: [rspec-users] ror app with advanced rspec?

2007-08-26 Thread rupert
plus for a rails app that uses rspec, there's the caboose sample app: http://blog.caboo.se/pages/sample-rails-application On 26 Aug 2007, at 11:24, Michael Klishin wrote: > RSpec itself is a nice example of pretty large open source project > that > uses RSpec for testing ;) > > It's a general

Re: [rspec-users] Deprecating the mocking framework?

2007-09-01 Thread rupert
amework in favor of using Mocha > (or any other framework one might want to plug in?). The idea has been banded around on the dev list recently, see. http://www.nabble.com/mock-framework-tf4312137.html#a12276473 for the discussion Cheers Rupert __

Re: [rspec-users] Deprecating the mocking framework?

2007-09-01 Thread rupert
On 1 Sep 2007, at 10:04, Tom Stuart wrote: > On 1 Sep 2007, at 09:31, rupert wrote: >>> Are we planning on dumping the mock framework in favor of using >>> Mocha >> The idea has been banded around on the dev list recently > > This makes me sad, because it mean

Re: [rspec-users] How to spec routes for a resource nested in multiples resources?

2007-09-01 Thread rupert
uld take the code from http://pastie.caboo.se/74249 and paste it into a file called (say) routes.rake in your lib/tasks directory then run rake routes to get a listing of all the routes and their mappings in your terminal window. This will show you how the controllers, actions and paramete

Re: [rspec-users] Deprecating the mocking framework?

2007-09-01 Thread rupert
On 1 Sep 2007, at 18:16, Andrew WC Brown wrote: > My question is what would you recommend for Mocking? > > Mocha or FlexMock? Personally, I've not got a clue as all I've used to date is the rspec mocking framework. I've had a quick look at Mocha and it seems pretty good, but haven't looked

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-10-14 Thread rupert
On 14 Oct 2007, at 08:28, Mikel Lindsaar wrote: > On 8/13/07, rupert <[EMAIL PROTECTED]> wrote: >> On 12 Aug 2007, at 14:38, David Chelimsky wrote: >>>> However, what I actually need to do is check each result that is >>>> yielded by the Connector.e

Re: [rspec-users] Problems with form_for and partials

2007-10-21 Thread rupert
ave to pass form builders around. This won't be practical though if you are using multiple partials for your forms fields. Rupert ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] uber-rcov for both cucumber & rspec

2008-12-08 Thread Rupert Voelcker
pecs using rcov so I can get a picture of overall coverage for my cucumber stories and rspec specs after they all have run (rather than separately). Should such a thing be possible and does anyone have a rake ask that does this - failing that any pointers muchly appreciated. Than

Re: [rspec-users] [rspec] looking for a simple refresher

2007-08-17 Thread Rupert Voelcker
> thats pretty much what I thought, I'll give it a push around and e- > mail back the results cool - good luck ...I'm off to bed as it's 1am here in the UK but I'm sure one of the useful chaps round here 'll help you out with any probs btw, I just noticed I've put @ticket_params = {} in the be

[rspec-users] Problems running pre-commit

2008-02-25 Thread Rupert Voelcker
've not done or done wrong, but I can't think what Cheers Rupert -- ry_spec.rb" "spec/spec/story/world_spec.rb" "spec/spec/translator_spec.rb" --format html:../doc/output/report.html --backtrace

Re: [rspec-users] Problems running pre-commit

2008-02-25 Thread Rupert Voelcker
On 25/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Mon, Feb 25, 2008 at 9:01 AM, Rupert Voelcker <[EMAIL PROTECTED]> wrote: > > Have been having some probs getting the pre-commit to run so help > > would be appreciated (then I can add some specs to my pa

Re: [rspec-users] Problems running pre-commit

2008-02-25 Thread Rupert Voelcker
expired 2) Timeout::Error in 'script/spec_server file without TextMate bundle runs a spec' execution expired Finished in 24.298229 seconds 332 examples, 2 failures, 3 pending rake aborted! ERROR while running rake: rake spec:plugins:rspec_on_rails --trace /Users/rupert/stuff/downlo