[rspec-users] Remote Features Screencast

2008-11-29 Thread Matthias Hennemeyer
Hi there, i have written a little Ruby Program called RemoteFeature (It’s more a Hack as of now). It lets you run Cucumber/RSpec Features that are defined in a 37Signals-Writeboard and updates the Writeboard automagically. I have made a Screencast about this. It is available at my blog: http://matt

Re: [rspec-users] Do people write specs for the code in their steps? How?

2009-01-18 Thread Matthias Hennemeyer
A year back or so i wrote a helper_method "step_eval(stepname, stepgroupname)" for the old storyrunnerframework that still works with the current rspec gem. The method has just 9 loc and think it would be even less with cucumber. Here is an executable script: http://pastie.org/363852 Matthia

Re: [rspec-users] Problem with Plain Text Story Runner

2008-02-28 Thread Matthias Hennemeyer
Hi Greg, maybe you did not append a colon to the word 'Story' in the plain text file. The runner want it this way: Story: Story Title ... Matthias Am 27.02.2008 um 15:14 schrieb Greg Gigon: > Hi Guys > I'm new to Ruby and BDD. > I'm having a problem while running my story in plain text. > This

Re: [rspec-users] rspec with continuations: very strange

2008-03-02 Thread Matthias Hennemeyer
ntinuation points to nil and the next step in evaluation is line 13 in your spec file. Matthias Hennemeyer Am 01.03.2008 um 18:37 schrieb Giles Bowkett: I appear to have written code which travels backwards through time: http://www.vimeo.com/742590 This disturbs me immensely. If anyone c

Re: [rspec-users] rspec controller action list

2008-03-03 Thread Matthias Hennemeyer
Am 03.03.2008 um 04:38 schrieb Namrata Tiwari: > The method find_city is in application controller. I think the method > 'find_city' is being called but its expecting some args. > The message: Mock 'ArticlesController' expected :find_city with (any args) once, but received it 0 times means th

Re: [rspec-users] Rspec and plugins

2008-03-03 Thread Matthias Hennemeyer
I would prefer two independent steps: 1) Specify (or test) the plugin so that you can trust that it works as intended. 2) Write a custom matcher (behave_in_a_cool_way) that lets you express that you want to have added some_cool_behavior to SomeModel: describe SomeModel it "should show so

[rspec-users] rspec vs. test::more

2008-03-04 Thread Matthias Hennemeyer
Hey all, you HAVE to read this blog post: http://blog.jrock.us/articles/RSpec%20vs.%20Test::More.pod#comments My favorite parts are: 1) ... some rspec code ... > For the sake of comparison lets translate this directly into perl: ... some perl code ... 2) >First, notice that the rspec-version i

[rspec-users] [ANN] StepSpecr

2008-04-21 Thread Matthias Hennemeyer
Hi, I've written a micro-dsl to spec the step-implementations for rspec user stories. Here is a blog post about it: http://www.workunitgroup.com/2008/4/21/introducing-stepspecr It lives on github: http://github.com/mhennemeyer/stepspecr Some info (from the README) StepSpecr is a Rails plug

Re: [rspec-users] how do i remove duplication from my steps in story runner?

2008-04-24 Thread Matthias Hennemeyer
Hi Perryn, maybe you'll find this interesting: http://www.workunitgroup.com/2008/4/23/crafting-rspec-steps-with- step_eval-and-drying-them-with-a-helper The DRYing thing begins at the middle of the second part of this series. matthias ___ rspec-use

Re: [rspec-users] Net:SSH

2008-04-25 Thread Matthias Hennemeyer
Hi James, i'm afraid this rspec user list is not the right list for your question. Matthias Am 25.04.2008 um 10:59 schrieb James George: Guys I'm having a problem with net-ssh, its kinda taking too long to execute a command and give me the results. It takes around 40 seonds to do it. And I

[rspec-users] != again

2008-06-01 Thread Matthias Hennemeyer
Hey! I have implemented a quick solution for the should != .. , should ! ~ ... 'problem'. It uses source code inspection (I think it's the only way) and i've done some benchmarking to see if it's really that slow. A direct comparison of running '1.should == 1' with the unmodified rspec sourc

Re: [rspec-users] != again

2008-06-04 Thread Matthias Hennemeyer
Am 02.06.2008 um 20:01 schrieb Pat Maddox: What about showing an ugly warning in the test runner? != is a funky edge case that can really bite people. It'd be nice to have it fixed, but then tell the programmer to change it to == because of performance. Pat

Re: [rspec-users] Problems with view spec and mocking will_paginate

2008-06-07 Thread Matthias Hennemeyer
You have to stub that count method for the Array object and not for class Array: comments = [comment] comments.stub!(:count).and_return(1) post_98.stub!(:comments).and_return(comments) post_99.stub!(:comments).and_return(comments) Matthias Am 06.06.2008 um 23:48 schrieb Gaston Ramos: Hi all

Re: [rspec-users] Refactoring's code needs refactoring's specs?

2008-06-10 Thread Matthias Hennemeyer
Pat Maddox posted about this: http://evang.eli.st/blog/2008/5/14/ refactoring-with-shared-example-groups Matthias. Am 10.06.2008 um 05:25 schrieb Gaston Ramos: Hi guys, I have one question: When refactoring the working code I need or should refactoring the specs too? My old code is: h

Re: [rspec-users] Which "get" is being used in Controller spec

2008-06-12 Thread Matthias Hennemeyer
Hi Mike, the request methods used in Controller tests are defined in Rails: ActionController::TestProcess. Rspec Rails Stories are basically Rails Integration tests and the methods used here are defined in Rails: ActionController::Integration::Session. Matthias Am 12.06.2008 um 08:40 sc

[rspec-users] RSpec Website not accessible at www.rspec.info

2008-06-22 Thread Matthias Hennemeyer
Hi, it would be nice if the rspec site could be also available at www.rspec.info. Matthias ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec Website not accessible at www.rspec.info

2008-06-22 Thread Matthias Hennemeyer
Thank you David! Matthias Am 22.06.2008 um 15:14 schrieb David Chelimsky: I just added www to the DNS, so everybody should have it sometime today. On Jun 22, 2008, at 8:10 AM, T K wrote: It's up for me. Can anybody else confirm this? ___ rspec-u