[rspec-users] Issue with jruby and cucumber step with 4 parameters

2009-05-19 Thread Korny Sietsma
Hi - sorry for the cross-list post, but this issue happens only with cucumber and jruby, and I'm not 100% sure which has the problem. It doesn't happen with non-j ruby though. Versions: cucumber 0.2.3 jruby 1.2.0 on Ubuntu amd64 When I have a cucumber feature with a "Then" step: (well, really

Re: [rspec-users] cucumber - when to stub/mock

2009-05-04 Thread Korny Sietsma
It's possibly worth pointing out for anyone else who needs to do stubbing, that you don't necessarily need a framework to stub stuff; I have cucumber tests that stub out some setup code in my app*, and they just use monkey-patching to do the stubbing. For instance, in the example below, you could

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Korny Sietsma
Celerity is very cool - when it works. It didn't work with out messy combination of javascript libraries, alas. (Dojo 0.4-ish for legacy bits, GWT for new bits) - apparently it will work with either of these frameworks, but for us, with both, it died mysteriously (and we gave up trying to fix it

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
equel library ( http://sequel.rubyforge.org/ ) , despite having a sucky name, is *great* for this sort of thing - manipulating tables, one-off migration scripts, and the like. If you need to manipulate data, but don't want a full ORM, give it a look. - Korny On Thu, Apr 30, 2009 at 2:22 PM, Ben Mabey wro

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
cenarios as 'given' steps for others) but it's slower - and the accumulated effect of slow builds can be terrible. - Korny On Thu, Apr 30, 2009 at 9:32 AM, Ben Mabey wrote: > Korny Sietsma wrote: >> >> True, but cucumber is useful for lots of different kinds of proj

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
'm aware webrat works without rails, but when I looked it didn't seem a big boost for our kind of app. On Wed, Apr 29, 2009 at 10:42 PM, Chris Flipse wrote: > On Wed, Apr 29, 2009 at 7:42 AM, Korny Sietsma wrote: >> >> Presumably you only need these if you are *building*

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
Presumably you only need these if you are *building* cucumber? If you just want to use cucumber, it should be as simple as "gem install cucumber", and it should get all the other dependencies. On my machine it seemed to install treetop, polyglot, and presumably a few others - but I don't have rsp

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-29 Thread Korny Sietsma
Just one comment - I went down this path a bit, and ended up finding it drastically easier to write a custom formatter. Take a look at http://wiki.github.com/aslakhellesoy/cucumber/custom-formatters - or see my post earlier at http://groups.google.com/group/rspec/browse_thread/thread/c8fde28e5f7577

Re: [rspec-users] [Cucumber] any examples of navigating cucumber parse tree from external script

2009-04-14 Thread Korny Sietsma
ter" will build new wiki pages "tabs" and "foo", and if there is a story page called "foo-1" it will add the tagged scenarios to it as well. (in a special "qa" section in this case) - Korny On Tue, Apr 14, 2009 at 5:11 PM, Korny Sietsma wrote: > Go

Re: [rspec-users] [Cucumber] any examples of navigating cucumber parse tree from external script

2009-04-14 Thread Korny Sietsma
Good idea. It's at http://gist.github.com/95033 And as I said before, it's pretty hacky :) - Korny On Tue, Apr 14, 2009 at 3:11 PM, aslak hellesoy wrote: > > > On Tue, Apr 14, 2009 at 6:06 AM, Korny Sietsma wrote: > >> In case anyone followed this: I got everything

Re: [rspec-users] [Cucumber] any examples of navigating cucumber parse tree from external script

2009-04-13 Thread Korny Sietsma
p - but I'm happy to share the (messy) code if anyone is interested. - Korny On Wed, Apr 8, 2009 at 4:24 PM, Korny Sietsma wrote: > Hmm - on digging further, I might be better off writing a custom formatter > as described at > http://wiki.github.com/aslakhellesoy/cucumber/custom-format

Re: [rspec-users] [Cucumber] any examples of navigating cucumber parse tree from external script

2009-04-07 Thread Korny Sietsma
the wiki, I've still got some work to do :) - korny On Wed, Apr 8, 2009 at 11:01 AM, Korny Sietsma wrote: > Hi folks, > I'm writing some scripts to integrate our cucumber features with stories > stored in a wiki, and I'm hoping to use cucumber's parser to parse the &g

[rspec-users] [Cucumber] any examples of navigating cucumber parse tree from external script

2009-04-07 Thread Korny Sietsma
Hi folks, I'm writing some scripts to integrate our cucumber features with stories stored in a wiki, and I'm hoping to use cucumber's parser to parse the features rather than doing it manually. (I don't really care about the feature contents much, just scenario titles and tags) I've worked out ho

[rspec-users] Cucumber seems to be running steps after failed steps ...

2009-03-13 Thread Korny Sietsma
I'm a bit confused. I have a scenario similar to (numbered for clarity): Scenario: view basic 1) Given I am logged in as 'fred' 2) When I navigate to the 'foo' tab 3) And I select the 'bar' node 4) Then the node 'baz' is displayed Now, when I have a problem that the 'foo' tab

Re: [rspec-users] Cucumber seems to be running steps after failed steps ...

2009-03-13 Thread Korny Sietsma
lakhellesoy-cucumber' - I might actually give up and try again on Monday when it might all make more sense!) - Korny On Fri, Mar 13, 2009 at 5:55 PM, Korny Sietsma wrote: > I'm a bit confused. > I have a scenario similar to (numbered for clarity): > Scenario: view basic >

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Korny Sietsma
I met a great analogy the other day - applies to TDD as well as BDD really. Unit testing is like double-entry book-keeping. It takes longer to do the initial work, and yes you have some repetition - but the reduction in errors saves you time and money overall. I'm struggling to think of a projec

Re: [rspec-users] getting storyrunner success/failure status in rake task

2008-04-17 Thread Korny Sietsma
e actually run by an at_exit handler - it took me quite a lot of digging to work out what *actually* kicked off the stories! - Korny On Wed, Apr 16, 2008 at 5:17 PM, Korny Sietsma <[EMAIL PROTECTED]> wrote: > Sweet! We're on an r&d project, so we'll probably move to edge...

Re: [rspec-users] getting storyrunner success/failure status in rake task

2008-04-16 Thread Korny Sietsma
Sweet! We're on an r&d project, so we'll probably move to edge... - Korny On Wed, Apr 16, 2008 at 3:53 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > Korny Sietsma wrote: > > Hi folks - I'm trying to build a rake task to run our plain-text > > sto

[rspec-users] getting storyrunner success/failure status in rake task

2008-04-15 Thread Korny Sietsma
Hi folks - I'm trying to build a rake task to run our plain-text stories, both from a normal build and from our continuous integration server. However, I'm having a problem - running all.rb doesn't return any sort of success/failure - so a broken story doesn't indicate to Cruise Control that the b

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

2008-03-04 Thread Korny Sietsma
Wow - both funny and a little tragic. He really doesn't understand what "readable" means, does he? "you keep using that word - I do not think it means what you think it means" - Korny On Wed, Mar 5, 2008 at 3:51 AM, Matthias Hennemeyer < [EMAIL PROTECTED]> wrote: > Hey all, > you HAVE to read t

Re: [rspec-users] bad specs better than none?

2008-02-27 Thread Korny Sietsma
Totally agree with this - I'm happy to work with specs that just define a single bit of the system's behaviour (i.e. "unit tests") and specs that define behaviour across several different parts of the system (i.e. "integration tests") - but it drives me mad when they are all mixed in together, rath

[rspec-users] How to spec a render:update call

2007-10-25 Thread Korny Sietsma
Hi folks. I'm trying to work out how to verify that a controller has called a render:update block similar to: render :update do |page| page.replace_html 'edit', :partial => 'form', :locals => { :operation => 'edit', :submit_button_value => 'Update' } end We used to test this with so

[rspec-users] using @variables in an 'it' block

2007-09-27 Thread Korny Sietsma
Hi folks, I'm somewhat new to the current RSpec release - at work we are still using 0.8.something, with "context 'blah' do ... specify 'should thing' ..." We have some helper code to automatically mix-in selenium: module SeleniumHelper include SpecHelper ... def initialize(arg) @selenium