[rspec-users] Cucumber: please make gem install aslakhellesoy-cucumber or gem install cucumber work again

2008-09-30 Thread Evan David Light
Subject says most of it. I'd love to use Cucumber in my project but I need to be able to install it in a Rails app and by a particular version number. I forked it and struggled with getting GitHub gems deployer to behave itself. Maybe a canonical version can be kept and updated in

[rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
Last night, I gave a presentation to the DC Ruby Users Group (http://dcrug.org ) on Plain Text Stories with Ruby. I spoke on both RSpec Plain Text Stories, which I have used, and Cucumber which I started to dig into a couple of nights ago. You can see the presentation here

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote: Please keep in mind that this is an *additional* way to do things - you can still write your steps exactly as you do in Story Runner, using regexps. Ah, good point. I missed that nuance in your comment on my blog. Perhaps the presence of

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote: I commented on your blog. Yup, I know. I know very well who you are, David. ;-) I've seen you speak a few times and even chatted with you briefly outside RailsConf '08 about this crazy idea that I had to redo RSpec Plain Text

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote: What you're proposing might look this: Scenario: division Given a numerator And a denominator Then the calculator should provide a quotient |numerator|denominator|quotient| This will put some constraints on the phrasing that might be

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote: I believe that binding the table to the phrasing would be immensely useful and perhaps even crucial to Scenario authors. Can you give an example of how this would be helpful? I'll try. Let's define a couple of roles for, the

[rspec-users] Mocking within a Proc/Block?

2007-10-24 Thread Evan David Light
The following works: it should evaluate a passed in block in the context of the interview object do block = Proc.new { raise unless self.is_a? (Interview) }.should_not raise_error Interview.create(:title = Text, block) end However, the following does not: it should

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Evan David Light
There are also a couple of examples buried in the trunk under examples/story/game-of-life/behaviour/stories On Sep 20, 2007, at 10:13 AM, Andrew WC Brown wrote: I'm guessing their isn't a generator for stories yet? ./script/generate story add_person On 9/20/07, James Hughes [EMAIL

[rspec-users] Posted this in dev last night but I'm not sure that anyone reads it

2007-09-14 Thread Evan David Light
I've been using RSpec in anger for perhaps a total of a few days and just started playing with Story Runner. Love it. I also started working on a patch, which ought to be simple, to allow for Scenarios without supplied blocks to be treated as pending -- much like it in

Re: [rspec-users] Posted this in dev last night but I'm not sure that anyone reads it

2007-09-14 Thread Evan David Light
On Sep 14, 2007, at 7:10 PM, Pat Maddox wrote: I agree that it would be nice if story runner treats an empty Given/When/Then as pending. But what do you mean it treats pending as an error case? The actual implementation of how a Scenario is defined as pending. The implementation raises a

Re: [rspec-users] Philosophical questions

2007-09-13 Thread Evan David Light
On Sep 13, 2007, at 6:10 PM, Pat Maddox wrote: On 9/12/07, Evan David Light [EMAIL PROTECTED] wrote: ... (Evan's RSpec n00bish ramblings) ... Thanks, Evan Hi Evan, I think you have the right idea about approaching specification from the user's viewpoint (or more appropriately

Re: [rspec-users] Can not 'assigns' value in View test

2007-09-12 Thread Evan David Light
Granted that I'm new too; however, assigns[:hash] creates a member variable @hash that is made available to the view. Maybe that's the problem? Modify your view to use @hash instead. On Sep 12, 2007, at 5:20 AM, Shaker wrote: Hello everyone: I am quit new to View test using

[rspec-users] Philosophical questions

2007-09-12 Thread Evan David Light
Disclaimer: The following are observations by a relatively new user (couple of weeks) of RSpec and not intended as RSpec trollbait. Also, forgive me if similar topics have been discussed elsewhere on the mailing list. I at least did the due diligence of a quick search. That

Re: [rspec-users] Philosophical questions

2007-09-12 Thread Evan David Light
Awesome! That's a whole lot more of a response than I had anticipated. Thanks! On Sep 12, 2007, at 6:15 PM, David Chelimsky wrote: On 9/12/07, Evan David Light [EMAIL PROTECTED] wrote: I like to start w/ integration tests before anything exists at all. You can do that w/ Rails

Re: [rspec-users] Philosophical questions

2007-09-12 Thread Evan David Light
On Sep 12, 2007, at 7:35 PM, David Chelimsky wrote: Story Runner is a new one for me. I'll have to look it up. Thanks! (Halfway through writing this, I realized, courtesy of Google, that it's a recently integrated piece of functionality into RSpec-on-Rails. I found this example of