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
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
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
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 => @
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
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
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
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
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
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
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 :-)
>
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.
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:
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
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
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
16 matches
Mail list logo