[rspec-users] the git experiment

2008-02-26 Thread David Chelimsky
Hey all, A while back I mentioned that we were going to move to git or hg. We decided that we'd experiment with each for a month and see how it goes. We're going to start with git. Obviously if all goes well we'll have to reassess whether or not to also give hg a try. We have a repo set up at gi

Re: [rspec-users] how to set up data before story runner steps?

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 10:53 PM, Bei <[EMAIL PROTECTED]> wrote: > Hi > > I'm using story runner of RSpec now. What I'm trying to do is > initializing the @selenium before any steps of one story is executing, > and stop @selenium after any story is finished. just as @BeforeClass > and @Afte

[rspec-users] how to set up data before story runner steps?

2008-02-26 Thread Bei
Hi I'm using story runner of RSpec now. What I'm trying to do is initializing the @selenium before any steps of one story is executing, and stop @selenium after any story is finished. just as @BeforeClass and @AfterClass in jUnit Any suggestions on this? Thanks!!! Bei here is my

Re: [rspec-users] Rspec Textmate bundle errors

2008-02-26 Thread Dave Myron
Mel Riffe wrote: > This is what worked for me (just did this last night): > > 1. I removed everything rspec to have a clean slate: > - gem uninstall rspec > - rm -fr vendor/plugins/rpec > - rm -fr vendor/plugins/rpec_on_rails > - using BundleEditor, removed RSpec Bundle > > 2. I then inst

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

2008-02-26 Thread Chuck Remes
On Feb 25, 2008, at 8:30 AM, David Chelimsky wrote: > On Mon, Feb 25, 2008 at 6:23 AM, Chuck Remes > <[EMAIL PROTECTED]> wrote: >> Thanks for asking this question. This is exactly what I was going >> to write, >> but you beat me to it! >> >> (Sorry for the top-post; just following the last re

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Edvard Majakari
> Yeah but then I get to say RTFM. Right now, TFM doesn't exist :( rant << EOF Indeed. People see much trouble in writing documentation so that they don't have to answer the same questions ad nauseam. It would be nice if we appreciated their efforts and check the documentation first. EOF -- "

Re: [rspec-users] Newbie question Context vs Describe

2008-02-26 Thread Pat Maddox
On Sun, Feb 24, 2008 at 6:26 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > In terms of getting that into RSpec, why don't you enter a feature > request at http://rspec.lighthouseapp.com and we can discuss the > merits of this there. As I said, I like it at first glance, but I want > to think

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 8:31 AM, Max Williams <[EMAIL PROTECTED]> wrote: > hehe, tbh even if the documentation had been there i probably wouldn't have > read it :) Yeah but then I get to say RTFM. Right now, TFM doesn't exist :( > > thanks! > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTED

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
hehe, tbh even if the documentation had been there i probably wouldn't have read it :) thanks! On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 26, 2008 at 8:08 AM, Max Williams > > <[EMAIL PROTECTED]> wrote: > > > > > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTE

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 8:08 AM, Max Williams <[EMAIL PROTECTED]> wrote: > > > > On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On Tue, Feb 26, 2008 at 7:39 AM, Max Williams > > <[EMAIL PROTECTED]> wrote: > > > > > > > > This does not happen for you implicitly when you use before

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
On 26/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 26, 2008 at 7:39 AM, Max Williams > <[EMAIL PROTECTED]> wrote: > > > This does not happen for you implicitly when you use before(:all) > because there is no mechanism for running a group of examples in a > transaction. ah..

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 7:39 AM, Max Williams <[EMAIL PROTECTED]> wrote: > I'm using before(:all) because i want to create a single 'family' of tree > objects and then run tests against it. If i have all the object creation as > a before(:each) then the database will be even more full of duplicati

[rspec-users] A Jedit mode for stories

2008-02-26 Thread JH
For other folks who use jedit, here is a little Mode script for editing stories to keep things looking nice: Just place this in your ~/.jedit/modes/ directory and add the MODE NAME tag to the catalog file in that same directory. It will become the editing mode for files that start with "story-

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
I'm using before(:all) because i want to create a single 'family' of tree objects and then run tests against it. If i have all the object creation as a before(:each) then the database will be even more full of duplications, won't it? My problem, though, is that the data is left over from the last

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread David Chelimsky
On Tue, Feb 26, 2008 at 5:41 AM, Edvard Majakari <[EMAIL PROTECTED]> wrote: > > My problems seem to be arising from the fact that when i run the test, the > > objects i created last time are still in the database. Shouldn't they be > > cleared out automatically? This in turn is preventing me fr

Re: [rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Edvard Majakari
> My problems seem to be arising from the fact that when i run the test, the > objects i created last time are still in the database. Shouldn't they be > cleared out automatically? This in turn is preventing me from saving root I don't know RSpec that well, but I'd guess before(:all) is run only

[rspec-users] Test data problem (in general and with acts_as_tree)

2008-02-26 Thread Max Williams
Hi all I'm having problems with data in my specs - i'm probably just going about things the wrong way though. I'm testing a model (called Property) that uses acts_as_tree, and for now have just done some specs for the basic acts_as_tree functionality - just as a sanity check, i thought, but i'm g