On Mon, Mar 17, 2008 at 9:59 AM, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> On 17-mrt-2008, at 14:51, Zach Dennis wrote:
>
> > I have been putting helper methods inside of my own modules and then
> > including them in RSpec::Story::World, which included in the context
> > that stories are de
On 17-mrt-2008, at 15:01, Ashley Moran wrote:
> On 17/03/2008, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
> Hmm, all of a sudden this thread is spiraling away from my original
> question :). Which is good of course :).
> I've made some inline comments.
>
> I can see how this would work for you, bu
On 17/03/2008, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> Hmm, all of a sudden this thread is spiraling away from my original
> question :). Which is good of course :).
> I've made some inline comments.
>
> I can see how this would work for you, but I actually want something
> more abstracted.
>
On 17-mrt-2008, at 14:51, Zach Dennis wrote:
> I have been putting helper methods inside of my own modules and then
> including them in RSpec::Story::World, which included in the context
> that stories are defined and run in (David, feel free to correct me if
> this is not 100% accurate).
>
Hmm,
Hmm, all of a sudden this thread is spiraling away from my original
question :). Which is good of course :).
I've made some inline comments.
On 17-mrt-2008, at 13:12, David Chelimsky wrote:
> On Mon, Mar 17, 2008 at 7:05 AM, Ashley Moran
> <[EMAIL PROTECTED]> wrote:
>> On 13/03/2008, Bart Zonne
I have been putting helper methods inside of my own modules and then
including them in RSpec::Story::World, which included in the context
that stories are defined and run in (David, feel free to correct me if
this is not 100% accurate).
module Spec::Story::World
def foo
# this is now availa
On 17/03/2008, Corey Haines <[EMAIL PROTECTED]> wrote:
>
> As an interim solution, we added this as helper file in the stories root.
> The key was figuring out what to mixin to.
>
> class ActionController::Integration::Session
> # ...
> end
>
> -Corey
Pretty neat! Unfortunately I don't think
As an interim solution, we added this as helper file in the stories root.
The key was figuring out what to mixin to.
class ActionController::Integration::Session
def with_input(id)
with_tag('input[id=?]',id)
end
def with_label(text)
with_tag('label',text)
end
>
> I have mixed feelings about this. If you do build up a library of step
> groups, having explicit scoping like this can be a great benefit.
> Agreed it makes things less convenient otherwise.
Hi David
Not sure I follow. Do you mean explicit scoping as having to type
"steps_for(:login)."? I
On Mon, Mar 17, 2008 at 7:05 AM, Ashley Moran
<[EMAIL PROTECTED]> wrote:
> On 13/03/2008, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> > Hey list,
> >
> > I'm refactoring some much-used functionality into a common_steps step
> > group. Methods like this are in there:
>
>
> Hi Bart / list
>
> This
On 13/03/2008, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> Hey list,
>
> I'm refactoring some much-used functionality into a common_steps step
> group. Methods like this are in there:
Hi Bart / list
This is not quite what you are thinking but I've noticed something strange
about steps_for. B
No replies? That doesn't happen very often :).
regards,
bartz
On 13-mrt-2008, at 14:13, Bart Zonneveld wrote:
> Hey list,
>
> I'm refactoring some much-used functionality into a common_steps step
> group. Methods like this are in there:
>
> steps_for :common do
>Given "a number of existing $
Hey list,
I'm refactoring some much-used functionality into a common_steps step
group. Methods like this are in there:
steps_for :common do
Given "a number of existing $types?" do |type|
@initial_item_count = type.singularize.classify.constantize.count
end
When "the user adds an
13 matches
Mail list logo