Re: [rspec-users] Old Style Stories

2008-02-21 Thread David Chelimsky
On Thu, Feb 21, 2008 at 10:26 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Thu, Feb 21, 2008 at 9:07 PM, Zach Dennis > > As you mentioned David, > "Plain text is great for some situations, but > > so is writing in Ruby". This begs the question now that we have plain > > text stories

Re: [rspec-users] Old Style Stories

2008-02-21 Thread David Chelimsky
On Thu, Feb 21, 2008 at 9:07 PM, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 20, 2008 at 11:21 PM, Kero <[EMAIL PROTECTED]> wrote: > > > > I was working on a past project tonight to trunk which is using the > > > > old story format. IE: > > > > Given "desc" do / end > > > > Wh

Re: [rspec-users] Newbie question ...

2008-02-21 Thread Anthony Broad-Crawford
yes, thank you very much! On Feb 21, 2008, at 5:23 PM, [EMAIL PROTECTED] wrote: > On Feb 21, 10:40 am, Anthony Broad-Crawford [EMAIL PROTECTED]> wrote: >> I am testing an action on a controller and cannot seem to find the >> syntax to stub a method call off of the controller I am testing. >> >>

Re: [rspec-users] Old Style Stories

2008-02-21 Thread Zach Dennis
On Wed, Feb 20, 2008 at 11:21 PM, Kero <[EMAIL PROTECTED]> wrote: > > > I was working on a past project tonight to trunk which is using the > > > old story format. IE: > > > Given "desc" do / end > > > When "someting "do /end > > > etc.. > > > > > > Is this officially supported, or is t

Re: [rspec-users] Newbie question ...

2008-02-21 Thread [EMAIL PROTECTED]
On Feb 21, 10:40 am, Anthony Broad-Crawford wrote: > I am testing an action on a controller and cannot seem to find the > syntax to stub a method call off of the controller I am testing. > > pseudo code > > class SomeController < < ApplicationController > > def some_action > >

Re: [rspec-users] Specs versus Stories

2008-02-21 Thread Joseph Anthony Pasquale Holsten
I try to thing of the audience for the work, and it keeps me sane. Stories are to make sure you're holding up your contract with the client or user. They are high level, and don't deal with any implementation details that can be abstracted away. You might relate them to acceptance tests, be

[rspec-users] Newbie question ...

2008-02-21 Thread Anthony Broad-Crawford
I am testing an action on a controller and cannot seem to find the syntax to stub a method call off of the controller I am testing. pseudo code class SomeController < < ApplicationController def some_action stuff stuff stuff

Re: [rspec-users] [Q] how to restructure tests for an abstract class?

2008-02-21 Thread Rick DeNatale
On 2/21/08, Chuck Remes <[EMAIL PROTECTED]> wrote: > While practicing BDD on my first-ever BDD project, I have come to a > point where it makes sense to change my original class to an abstract > class and create one (or more) concrete subclasses that implement a > specific method. What is the ri

Re: [rspec-users] Run all tests after success

2008-02-21 Thread Joe Van Dyk
On Thu, Feb 21, 2008 at 5:21 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 20, 2008 at 10:41 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > On Sat, Feb 16, 2008 at 10:39 AM, David Chelimsky <[EMAIL PROTECTED]> > wrote: > > > On Feb 16, 2008 1:21 PM, Steve <[EMAIL PROTECTED]> wr

[rspec-users] [Q] how to restructure tests for an abstract class?

2008-02-21 Thread Chuck Remes
While practicing BDD on my first-ever BDD project, I have come to a point where it makes sense to change my original class to an abstract class and create one (or more) concrete subclasses that implement a specific method. What is the right way to restructure the tests in this scenario? Do

[rspec-users] Rspec, stories and web services

2008-02-21 Thread Abdullah Jibaly
Hi All, I'm just getting into Rspec and have a couple questions to get my head around this: 1- Testing web services: is this a good fit for User Stories? 2- The web services run on ActionWebServices, should I be doing additional testing using traditional Rspec/Rails integration (I don't know if I

Re: [rspec-users] Unwanted fixture data messing up my other tests

2008-02-21 Thread Max Williams
Hi David I have that option set already, and i'm not using any fixtures in spec_helper. My spec helper looks like this: is it the use_instantiated_fixtures option perhaps? (i don't know what that does). thanks, max ENV["RAILS_ENV"] = "test" requ

Re: [rspec-users] Run all tests after success

2008-02-21 Thread David Chelimsky
On Wed, Feb 20, 2008 at 10:41 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > On Sat, Feb 16, 2008 at 10:39 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Feb 16, 2008 1:21 PM, Steve <[EMAIL PROTECTED]> wrote: > > > On Sat, 16 Feb 2008 18:13:51 +, Steve wrote: > > > > What was the natu

Re: [rspec-users] Unwanted fixture data messing up my other tests

2008-02-21 Thread David Chelimsky
On Thu, Feb 21, 2008 at 6:17 AM, Max Williams <[EMAIL PROTECTED]> wrote: > I have a fixture for one of my tables that i use in some model tests. The > data in it is messing up some other tests for a different model, that > doesn't ask for the fixture - isn't the fixture data supposed to be cleared

Re: [rspec-users] Quiet Backtrace in RSpec

2008-02-21 Thread David Chelimsky
On Thu, Feb 21, 2008 at 12:52 AM, Jed Hurt <[EMAIL PROTECTED]> wrote: > Ahh, I see. Is Spec::Runner::QuietBacktraceTweaker configurable for more > quietness? Nope. > > > > On Sat, Jan 19, 2008 at 1:39 AM, aslak hellesoy <[EMAIL PROTECTED]> > wrote: > > > > > > > > > On Jan 19, 2008 4:16 AM, Jed H

[rspec-users] Unwanted fixture data messing up my other tests

2008-02-21 Thread Max Williams
I have a fixture for one of my tables that i use in some model tests. The data in it is messing up some other tests for a different model, that doesn't ask for the fixture - isn't the fixture data supposed to be cleared out of the test db in between tests, and only be present if specifically asked

[rspec-users] [ANN] RSpec mailing list Google Group mirror

2008-02-21 Thread rubyphunk
Hi. I've created a Google Group 'rspec' that acts as a mirror to the RSpec- users mailing list. You can find the group at http://groups.google.com/group/rspec. lg -- andreas ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mai