Reads like haiku :p
On Nov 14, 2007, at 7:01 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> I'm writing a plain text story (testing the waters) and I have
> scenarios that I need to chain in my specs.
>
> Here is what I have so far:
>
> Story: User purchasing tshirts
> As a user
> I want to
I'm writing a plain text story (testing the waters) and I have
scenarios that I need to chain in my specs.
Here is what I have so far:
Story: User purchasing tshirts
As a user
I want to checkout
So that I can purchase shirts
Scenario: User goes to checkout with nothing in cart
Woo, nice docs in there, ha! ;)
How is it intended to be used?
Thanks,
Nate
On Nov 14, 2007, at 6:26 PM, John W. Long wrote:
> On Nov 14, 2007, at 6:25 PM, Nathan Sutton wrote:
>> Hey guys, just poppin in to ask if anyone knows when stories will be
>> somewhat stable? We're starting to use in
much better: script/spec spec -fh > spec_doc.html
Nate
On Nov 14, 2007, at 7:10 PM, Mark McG. wrote:
> Mark McG. wrote:
>> I have a project on edge rails that I'm trying to convert from
>> Test:Unit
>> to rspec.I have the rspec gem version 2338, the rspec and
>> rsepc_on_rails version 2831
Mark McG. wrote:
> I have a project on edge rails that I'm trying to convert from Test:Unit
> to rspec.I have the rspec gem version 2338, the rspec and
> rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in
> vendor/rails.
>
> I've been able to get a few specs passing, have
On Nov 14, 2007, at 6:25 PM, Nathan Sutton wrote:
> Hey guys, just poppin in to ask if anyone knows when stories will be
> somewhat stable? We're starting to use integration tests at work,
> we're already using rspec, and I'd like to avoid integration tests if
> possible.
Here's a plugin a frien
On Nov 14, 2007 8:37 PM, Kyle Hargraves <[EMAIL PROTECTED]> wrote:
> On Nov 14, 2007 12:32 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > http://rspec.rubyforge.org/documentation/rails/install.html
> >
> > CURRENT means the latest release, not the trunk. 1.0.8 was out months
> > ago - obviously
On Nov 13, 2007 4:00 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Nov 13, 2007 5:17 PM, Pat Maddox <[EMAIL PROTECTED]> wrote:
> > Let's say in some banking software we have a transfer screen, and
> > there are three possible errors: insufficient funds, source account
> > frozen, target acco
On Nov 14, 2007 5:40 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> Aw, you both cautioned me and calmed me, I don't know what to think
> now! ;)
>
> Seriously though, I'd love to use it over integration tests. When is
> the next release? Are you on a scheduled release cycle?
We're hoping to hav
Aw, you both cautioned me and calmed me, I don't know what to think
now! ;)
Seriously though, I'd love to use it over integration tests. When is
the next release? Are you on a scheduled release cycle?
Nate
On Nov 14, 2007, at 5:33 PM, David Chelimsky wrote:
> On Nov 14, 2007 5:25 PM, Nath
On Nov 14, 2007 5:25 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> Hey guys, just poppin in to ask if anyone knows when stories will be
> somewhat stable?
Are you serious? Stories haven't even been released yet :)
Realistically, names like Story, Scenario, Given, When and Then are
not likely to
Hey guys, just poppin in to ask if anyone knows when stories will be
somewhat stable? We're starting to use integration tests at work,
we're already using rspec, and I'd like to avoid integration tests if
possible.
Thanks,
Nate "fowlduck" Sutton
On Nov 14, 2007, at 4:08 PM, sinclair bain wrote:
> Matthew,
>
> If your intent is to test the behaviour of your model(s), then yes
> mocking and
> stubbing are a good [_the_] way to go.
Except, of course, that you are no longer really validating the
associated models - only your mocks.
Sc
Matthew,
If your intent is to test the behaviour of your model(s), then yes mocking
and
stubbing are a good [_the_] way to go.
>
> Cheers!
sinclair
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Nov 14, 2007 11:37 AM, Kyle Hargraves <[EMAIL PROTECTED]> wrote:
> On Nov 14, 2007 12:32 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > http://rspec.rubyforge.org/documentation/rails/install.html
> >
> > CURRENT means the latest release, not the trunk. 1.0.8 was out months
> > ago - obviousl
On Nov 14, 2007 12:32 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> http://rspec.rubyforge.org/documentation/rails/install.html
>
> CURRENT means the latest release, not the trunk. 1.0.8 was out months
> ago - obviously not compatible with subsequent changes to rails.
>
> Cheers,
> David
I see
On Nov 14, 2007 1:07 PM, Glenn Ford <[EMAIL PROTECTED]> wrote:
> Your suggestion put me on the right track. I looked back to where I
> had I ran into a case where I was trying to stub an instance I
> couldn't get ahold of in the scope of my spec and since I was having
> trouble with some mocha bug
Your suggestion put me on the right track. I looked back to where I
had I ran into a case where I was trying to stub an instance I
couldn't get ahold of in the scope of my spec and since I was having
trouble with some mocha bugs, I resorted to a
Model.class_eval do
alias_method :origi
On Nov 14, 2007 12:28 PM, Anton Kuzmin <[EMAIL PROTECTED]> wrote:
>
> David Chelimsky wrote:
> > On Nov 8, 2007 8:36 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> >> On Nov 8, 2007 8:21 PM, Patrick Aljord <[EMAIL PROTECTED]> wrote:
> >> > Nothing its a fresh project with latest rails edge that i
David Chelimsky wrote:
> On Nov 8, 2007 8:36 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
>> On Nov 8, 2007 8:21 PM, Patrick Aljord <[EMAIL PROTECTED]> wrote:
>> > Nothing its a fresh project with latest rails edge that i started to
>> > learn rspec.
>>
>> Rails edge or 2.0 preview?
>>
>
> I jus
On Nov 14, 2007, at 11:37 AM, Glenn Ford wrote:
> I run my suite of tests, one test fails.
> I run that one test file, no tests fail.
>
> Something is carrying over between files and I can't figure out what.
> I tracked down the problem to the very line it's occurring on, with
> printouts before
I have a spec that's not behaving as I'm thinking it should. Here's the
code:
http://pastie.caboo.se/117931
it's failing with:
ActionView::TemplateError in 'customers/new should receive fields_for'
Mock 'ActionView::Base' expected :form_for with ("address", #) but received it with (:customer,
#,
I run my suite of tests, one test fails.
I run that one test file, no tests fail.
Something is carrying over between files and I can't figure out what.
I tracked down the problem to the very line it's occurring on, with
printouts before and after every call to make sure I know exactly what
Hello,
As I'm becoming more and more familiar with mocking/stubbing, I'm going back
to some of my model specs and revaluating how I wrote them.
I have certain models in which validation requires the presence of an
associated model, which itself needs to be valid(validates_presence_of and
validate
On Nov 13, 2007, at 7:02 PM, David Chelimsky wrote:
> On Nov 13, 2007 5:37 PM, Dan Aronson <[EMAIL PROTECTED]> wrote:
>> I have the latest version of rspec and rails-rspec installed.
>
> What specifically did you install? Also what version of rails? Include
> revision numbers if you can.
Also -
On 13.11.2007, at 19.21, David Chelimsky wrote:
> On Nov 13, 2007 10:52 AM, Jarkko Laine <[EMAIL PROTECTED]> wrote:
>> Is there something currently going on on the rspec trunk that causes
>> a massive slowdown when running rake spec and autotest (without
>> spec_server)? I updated to the latest t
On 11/14/07, Karni Karni <[EMAIL PROTECTED]> wrote:
> Karni Karni wrote:
> > aslak hellesoy wrote:
> >
> > Could u pls give any URL form u written this code?
>
> Thanks for ur reply. But in my case the total code is in the controller.
It shouldn't be. Put business logic in the model.
http://weblo
Karni Karni wrote:
> aslak hellesoy wrote:
>
> Could u pls give any URL form u written this code?
Thanks for ur reply. But in my case the total code is in the controller.
I' submitting the from to a specific action with CSV file.
Hoew can I pass my CSV file to that specific action
--
Posted vi
aslak hellesoy wrote:
Could u pls give any URL form u written this code?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
29 matches
Mail list logo