[rspec-users] [ANN] RSpec-1.0.8

2007-08-12 Thread David Chelimsky
The RSpec Development Team is pleased to announce the release of RSpec-1.0.8. RSpec 1.0.6 is the "holy cow, batman, it's been a long time since we released and there are a ton of bug fixes, patches and even new features" release. RSpec 1.0.7 and 1.0.8 deal with a regression introduced in 1.0.6 and

[rspec-users] Problem of using fixture in Rspec

2007-08-12 Thread Shaker
Dear Fellows: I was using fixtures in the model tests using Rspec. I found that the test data specified in the fixtures was stored in the test database once I ran the spec and won't be removed anyway. Is my observation correct? There might be another problem regarding the fixtures. When I

Re: [rspec-users] Scope and specing models

2007-08-12 Thread David Chelimsky
On 8/12/07, David Parker <[EMAIL PROTECTED]> wrote: > Hello all, I'm currently having an issue with some specs, specifically scope > issues (probably more of a scope issue than a spec issue at this point)... > Here's the error: > ActiveRecord::AssociationTypeMismatch in 'A new User should > know wh

[rspec-users] Scope and specing models

2007-08-12 Thread David Parker
Hello all, I'm currently having an issue with some specs, specifically scope issues (probably more of a scope issue than a spec issue at this point)... Here's the error: ActiveRecord::AssociationTypeMismatch in 'A new User should know what role it has' Role expected, got NilClass D:/ruby/projects/r

[rspec-users] Test::Unit to RSpec Converter

2007-08-12 Thread David Rice
Hey, just posting in case this is of interest. I just recently wrote a Rails plugin to convert Rails Test::Unit cases to RSpec. http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin- test-unit-to-rspec-converter it's not going to work 100% in every case, but it's really helpe

Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-12 Thread Jay Levitt
Lance Carlson wrote: > It was never resolved.. the only resolution was to mock out the > methods at this point or provide the views with the instance > variables. Well, I didn't get anywhere tonight - but I did discover that script/console has the same problem. Given routes.rb: map.resources :u

Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-12 Thread Lance Carlson
It was never resolved.. the only resolution was to mock out the methods at this point or provide the views with the instance variables. On 8/12/07, Jay Levitt <[EMAIL PROTECTED]> wrote: > David Chelimsky wrote: > > On 8/10/07, Lance Carlson <[EMAIL PROTECTED]> wrote: > >> Thanks for your patience

Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-12 Thread Jay Levitt
David Chelimsky wrote: > On 8/10/07, Lance Carlson <[EMAIL PROTECTED]> wrote: >> Thanks for your patience trying to resolve this issue. I posted a bug >> report here: >> >> http://rubyforge.org/tracker/index.php?func=detail&aid=12963&group_id=797&atid=3149 > > I see it - thanks. If you have time n

Re: [rspec-users] 1.0.6 gotcha

2007-08-12 Thread Ian Leitch
Cheers David, I've been waiting patiently for this release :) I think I might wait for a rainy day until I upgrade though (I'm not using autotest btw).. 1469 examples, 62 failures It's good to see you (and the rest of the team) give credit where credit is due. I was half expecting the contributo

[rspec-users] 1.0.6 gotcha

2007-08-12 Thread David Chelimsky
Hi All - I released 1.0.6 this morning, but there is apparently a bug related to rspec and autotest. I'll be fixing this today (but not until tonight) so you have two options: Wait until 1.0.7 (tonight) Upgrade now to 1.0.6 but make sure you install the rspec gem. Thanks, David _

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-08-12 Thread rupert
On 12 Aug 2007, at 14:38, David Chelimsky wrote: > On 8/12/07, rupert <[EMAIL PROTECTED]> wrote: >> I've just found myself stuck trying to rspec something so am hoping >> someone more knowledgable can help. >> >> I have a Connector class which has a class method 'results' that >> yields results i

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-08-12 Thread David Chelimsky
On 8/12/07, rupert <[EMAIL PROTECTED]> wrote: > I've just found myself stuck trying to rspec something so am hoping > someone more knowledgable can help. > > I have a Connector class which has a class method 'results' that > yields results it get from a network service based on a set of > attribute

[rspec-users] stubbing a method that yeilds sequential results

2007-08-12 Thread rupert
I've just found myself stuck trying to rspec something so am hoping someone more knowledgable can help. I have a Connector class which has a class method 'results' that yields results it get from a network service based on a set of attributes that I pass to it. I am wanting to yield these r