Re: [rspec-users] Plain Text Stories Chaining Scenarios

2007-11-14 Thread Courtenay
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

[rspec-users] Plain Text Stories Chaining Scenarios

2007-11-14 Thread Nathan Sutton
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

Re: [rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Nathan Sutton
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Mark McG.
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

Re: [rspec-users] ETA to Stories

2007-11-14 Thread John W. Long
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread aslak hellesoy
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

Re: [rspec-users] Role of stories vs specs

2007-11-14 Thread Pat Maddox
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

Re: [rspec-users] ETA to Stories

2007-11-14 Thread David Chelimsky
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

Re: [rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
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

Re: [rspec-users] ETA to Stories

2007-11-14 Thread David Chelimsky
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

[rspec-users] ETA to Stories

2007-11-14 Thread Nathan Sutton
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

Re: [rspec-users] Stubbing out required associated models

2007-11-14 Thread Scott Taylor
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

Re: [rspec-users] Stubbing out required associated models

2007-11-14 Thread sinclair bain
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Pat Maddox
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Kyle Hargraves
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

Re: [rspec-users] Interdependency between RSpec files

2007-11-14 Thread David Chelimsky
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

Re: [rspec-users] Interdependency between RSpec files

2007-11-14 Thread Glenn Ford
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread David Chelimsky
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

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread Anton Kuzmin
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

Re: [rspec-users] Interdependency between RSpec files

2007-11-14 Thread Scott Taylor
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

[rspec-users] Should receive field_for failing

2007-11-14 Thread Steve
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, #,

[rspec-users] Interdependency between RSpec files

2007-11-14 Thread Glenn Ford
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

[rspec-users] Stubbing out required associated models

2007-11-14 Thread Matthew Lins
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

Re: [rspec-users] new to rspec, error running "rake rspec" on debian/etch

2007-11-14 Thread Scott Taylor
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 -

Re: [rspec-users] Spec slowdown

2007-11-14 Thread Jarkko Laine
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

Re: [rspec-users] Test case for file import

2007-11-14 Thread aslak hellesoy
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

Re: [rspec-users] Test case for file import

2007-11-14 Thread Karni Karni
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

Re: [rspec-users] Test case for file import

2007-11-14 Thread Karni Karni
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