[rspec-users] jruby require 'jcode' problem and cucumber 1.2.0

2009-04-25 Thread Steve Molitor
After upgrading to cucumber 0.3.0 from 0.1.16 I'm getting this error when I try to run a feature: /Users/steve/src/jruby-1.2.0/lib/ruby/1.8/jcode.rb:66:in `end_regexp': too short multibyte code string: /[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]$/ (RegexpError) from /Users/steve/src/j

Re: [rspec-users] Spec run heuristics (Re: Cucover: coverage-aware 'lazy' cucumber runs)

2009-04-12 Thread Steve Molitor
Stephen, Regarding the exception nagger, would a simple script that grepped the log file for exceptions and produced a list of failing lines in your code be a start? Steve On Sat, Apr 11, 2009 at 11:47 PM, Stephen Eley wrote: > On Sat, Apr 11, 2009 at 2:02 PM, Ashley Moran > wrote: > > > > I

Re: [rspec-users] Webrat - Fill in text field by id

2009-03-06 Thread Steve Molitor
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says: "field can be either the value of a name attribute (i.e. user[email]) or the text inside a element that points at the field." Does it also try the id? Steve On Fri, Mar 6, 2009 at 11:03 AM, James Byrne wrote:

[rspec-users] Webrat - Fill in text field by id

2009-03-06 Thread Steve Molitor
Is there a way to locate and 'fill in' a text field (or check a check box, select an option, etc.) by id? It seems that the fill_in method takes either the text of the label pointing to the field or the field name. The are cases when writing cucumber steps when using the HTML id of the input elem

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
gt;> people use your validation code in those spots where you want them to. >> How does that sound? Steve On Thu, Jan 8, 2009 at 12:52 PM, Zach Dennis wrote: > On Thu, Jan 8, 2009 at 11:32 AM, Steve Molitor > wrote: > > I guess that would work. > > What would work?

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
Steve On Thu, Jan 8, 2009 at 10:32 AM, Steve Molitor wrote: > I guess that would work. But a method would probably work too, if I'm > understanding correctly (often a bad assumption!). I.e. /"(.*)" should be > a valid date/ would call valid_date?(date), or something.

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
nse, other times where that would be too much noise and you want a reference. Steve Steve I don't think you need all 3 steps. OK. "Then" is awkward On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox wrote: > On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley wrote: > > On Wed, Jan 7

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
s where you want them to. > How does that sound? > > Pat > > On Wed, Jan 7, 2009 at 5:58 PM, Steve Molitor > wrote: > > Yeah I thought of something like that. Actually we do something like > that > > in one step now that I think about it. But I really wanted t

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox wrote: > On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley wrote: > > On Wed, Jan 7, 2009 at 7:00 PM, Steve Molitor > wrote: > >> Lots of features use the word "should" in their then clauses. > >> Take this exampl

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
Yeah I thought of something like that. Actually we do something like that in one step now that I think about it. But I really wanted to execute the same exact date feature (for example) doc that the user verified to make sure nothing got lost in translation. Which I could do if I programmaticall

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
eature is clearer to the customer than a spec example. Steve On Wed, Jan 7, 2009 at 4:22 PM, Stephen Eley wrote: > On Wed, Jan 7, 2009 at 12:23 PM, Steve Molitor > wrote: > > By a global requirement I'm talking about requirements like 'all emails > must > >

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
Steve On Wed, Jan 7, 2009 at 2:46 PM, Matt Wynne wrote: > > On 7 Jan 2009, at 17:23, Steve Molitor wrote: > > I have two related questions: What is the best way to express global >> requirements, and how does one do it in Cucumber. The first question is the >> on

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
on. That was very important, it was a global requirement with some important exceptions. But I think your approach would have worked there as well. On Wed, Jan 7, 2009 at 1:57 PM, Pat Maddox wrote: > On Wed, Jan 7, 2009 at 9:23 AM, Steve Molitor > wrote: > > I have two related

[rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
I have two related questions: What is the best way to express global requirements, and how does one do it in Cucumber. The first question is the one I'm most interested in right now. By a global requirement I'm talking about requirements like 'all emails must be formatted like this...' Some peop

Re: [rspec-users] newbie cucumber tutorial

2008-12-22 Thread Steve Molitor
+1 @ Pat I was going to respond in more detail, but I do exactly what Pat does -- bang in steps, no bang in Rails apps. The Rails scaffolding boiler plate generates no bangs. Steve On Mon, Dec 22, 2008 at 2:30 PM, Pat Maddox wrote: > On Mon, Dec 22, 2008 at 11:29 AM, Caius Durling wrote: > >

Re: [rspec-users] [Cucumber] a few clarifications please...

2008-12-17 Thread Steve Molitor
What about two steps with the same regex but are of different types -- i.e. a Given and a Then with the same regexp? Steve On Wed, Dec 17, 2008 at 6:07 PM, aslak hellesoy wrote: > > > On Wed, Dec 17, 2008 at 11:50 PM, Tim Walker wrote: > >> Great information guys, making some progress on this en

Re: [rspec-users] Reuse of Cucumber Features

2008-12-14 Thread Steve Molitor
dashes - Am I making sense? I want to specify the date in the features, as there may be extra requirements like birth dates can not be in the future in addition to the generic date requirements. And I want to validate that the form checks for valid dates, displays the appropriate error mes

[rspec-users] Reuse of Cucumber Features

2008-12-13 Thread Steve Molitor
What's the best way to handle a requirement that shows up as a sub-requirement requirement in other features? For example let's say users can enter dates in various forms throughout my application. There is one set of global rules specifying the formats in which dates may be entered, and how the

[rspec-users] cucumber features HTML output bug with more than 100 steps

2008-12-12 Thread Steve Molitor
I'm having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: stepPassed(100) Steps 101 -n are colored grey. The tag is not closed but all steps are displayed. When running with 'for