Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread Andrew WC Brown
When I first used story runner I thought the same option would be needed. Then I thought about it then came to the conclusion that it would be more clear to write something such as: Given a user named, Joe And a company named, Acme And user works for, Acme And user is a, Janitor On 10/14/07, Andy

Re: [rspec-users] Story Runner: DRYing steps used in many stories

2007-10-13 Thread Andy Watts
Just realized step code is DRY across stories within the same file. (in addition to being DRY across scenarios) I thought it best to organize stories, each in their own separate file. My question then is about shared step code for use in many files. Many Thanks Andy -- View this message in cont

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread Andy Watts
Zach Dennis-2 wrote: > > I like to keep them closer to customer readable/writable myself. > Customer readable/writable stories are important for me too. To that end, I would prefer inline, Option 1. 1. And "the user", "Joe", "works for", "Acme", "as a", "janitor" 2. And "the user $user works

[rspec-users] Story Runner: DRYing items used in many stories

2007-10-13 Thread Andy Watts
The number of stories I have is growing and I'm writing the following step long hand in each story. Given 'a user named', 'Andy', 'Watts' do |first_name, family_name| @email = first_name + '@test.lan' create_user( :first_name => first_name, :family_name => family_name, :email => @

Re: [rspec-users] NO NAME (Because of --dry-run) output

2007-10-13 Thread Scott Taylor
On Oct 13, 2007, at 9:59 PM, Steve wrote: > On Sat, 06 Oct 2007 09:21:34 -0500, David Chelimsky wrote: > >> There is an auto-generation feature that let's you do this: >> >> specify { something.should be_something } >> >> which would produce output: >> >> - should be something >> >> The thing i

Re: [rspec-users] NO NAME (Because of --dry-run) output

2007-10-13 Thread Steve
On Sat, 06 Oct 2007 09:21:34 -0500, David Chelimsky wrote: > There is an auto-generation feature that let's you do this: > > specify { something.should be_something } > > which would produce output: > > - should be something > > The thing is that it relies on actually running the examples, w

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread Zach Dennis
On 10/13/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > And "the user", "Joe", "works for", "Acme", "as a", "janitor" I vote no on this. > > And "the user $user works for $company as a $jobtitle", "Joe", "Acme", > "janitor" If these are the two choices then this one is better, but this does

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread David Chelimsky
On 10/13/07, Dan North <[EMAIL PROTECTED]> wrote: > Or even: > > And "the user", "Joe", "works for", "Acme", "as a", "janitor" > > so the params are inline. Dan - I know we discussed that possibility, but don't recall where we left the conversation. I think we were supposed to discuss this more at

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread Dan North
Or even: And "the user", "Joe", "works for", "Acme", "as a", "janitor" so the params are inline. On 10/13/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/13/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/12/07, Tasty <[EMAIL PROTECTED]> wrote: > > > > > > Fistly, many, many

Re: [rspec-users] [RSpec] Unexpected behavior using TextMate Bundle...

2007-10-13 Thread Carl Porth
I think I had this problem. The difference in behavior is due to TM using different shell environments due to how you are launching it. I think I did something like: http://blog.dnite.org/2007/8/28/textmate-and-your-environment-variables Just substitute in your shell PATH into the one in t

Re: [rspec-users] specing system

2007-10-13 Thread aslak hellesoy
On 10/13/07, Priit Tamboom <[EMAIL PROTECTED]> wrote: > Hi! > > Having some wine on Saturday and just playing around writing some ruby script: > > * have you spec any 'system' method? As long I know it just returns > false or true and everything else is just out of reach; prove me I'm > wrong :-) >

[rspec-users] specing system

2007-10-13 Thread Priit Tamboom
Hi! Having some wine on Saturday and just playing around writing some ruby script: * have you spec any 'system' method? As long I know it just returns false or true and everything else is just out of reach; prove me I'm wrong :-) it 'should have response with 64.233.167.99' system 'ping google.

Re: [rspec-users] [RSpec] Unexpected behavior using TextMate Bundle...

2007-10-13 Thread Mel Riffe
Hi George, Sorry I didn't post the version information - I was "specin' it up" and just did the quick hit post. Here's the information you're looking for: Versions are ../tags/CURRENT/ Didn't install gem. The "Language" is Ruby; I don't see RSpec as an option. Here's the Error I'm receiving:

Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-13 Thread Bryan Ray
Can you post your entire: it "should assign the found fa_codes for the view" block? as well as your fa_code controller? perhaps pastie it and link. That appears to be the spec failing. James Hughes wrote: > Hi, > > I have two models in an app that inherit from ActiveResource::Base. > The scaffo

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread David Chelimsky
On 10/13/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/12/07, Tasty <[EMAIL PROTECTED]> wrote: > > > > Fistly, many, many thanks for RSpec and Story Runner. > > > > Minor request to improve readability of output > > > > Given a scenario item with multiple params.. > > Eg. And "the user be

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread David Chelimsky
On 10/12/07, Tasty <[EMAIL PROTECTED]> wrote: > > Fistly, many, many thanks for RSpec and Story Runner. > > Minor request to improve readability of output > > Given a scenario item with multiple params.. > Eg. And "the user belongs to", "Joe", "Acme" do |user_name, company_name| > > The readabilit