Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-05 Thread Hedge Hog
On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: > > On 4 Mar 2011, at 05:45, Hedge Hog wrote: > >> Hi, >> I'm struggling with something that seems to be simple, and I've not >> had any joy following the RSpec books suggestions (p. 187). >> I'd like to test that a method raises and error when a f

Re: [rspec-users] How to intercept an instance method from StdLib (1.9.2)

2011-03-05 Thread Matt Wynne
On 5 Mar 2011, at 12:06, Hedge Hog wrote: > On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote: >> >> On 4 Mar 2011, at 05:45, Hedge Hog wrote: >> >>> Hi, >>> I'm struggling with something that seems to be simple, and I've not >>> had any joy following the RSpec books suggestions (p. 187). >>> I

[rspec-users] Rails 3 Upgrade

2011-03-05 Thread Lakshmanan
Hi, I am upgrading a rails 2.1.0 app to Rails 3. Before I started my migration, I wrote all the tests cases for my app in Rspec 1.x version. I am doubting whether rspec test cases written in 1.x version will work when my app starts running in Rails3. After I upgrade to rails 3, i want to run my

[rspec-users] installing RSpec requires changing generators in config/applicaton.rb?

2011-03-05 Thread Daniel Kehoe
All the RSpec installation instructions I've seen (except the RSpec Book) say something like: Set up the RSpec generator by adding the following to config/ applicaton.rb: config.generators do |g| g.test_framework :rspec end Or Create a generator configuration file config/initializers/ generato

Re: [rspec-users] installing RSpec requires changing generators in config/applicaton.rb?

2011-03-05 Thread David Chelimsky
On Mar 1, 2011, at 2:59 PM, Daniel Kehoe wrote: > All the RSpec installation instructions I've seen (except the RSpec > Book) say something like: > > Set up the RSpec generator by adding the following to config/ > applicaton.rb: > config.generators do |g| > g.test_framework :rspec > end > > Or

[rspec-users] db:test:prepare interfering with rake spec pattern

2011-03-05 Thread Mario Aquino
I have a tricky problem with running rake spec in a Rails 3.0.3 project (using rspec-2.5.0, rspec-rails and rake 0.8.7). It may be that this mailing list is not the correct one to ask for help, but I am hoping that it is. When I run 'rake spec', the spec files for one of the gems my project uses

Re: [rspec-users] Rails 3 Upgrade

2011-03-05 Thread David Chelimsky
On Mar 1, 2011, at 7:33 PM, Lakshmanan wrote: > Hi, > > I am upgrading a rails 2.1.0 app to Rails 3. Before I started my migration, I > wrote all the tests cases for my app in Rspec 1.x version. > > I am doubting whether rspec test cases written in 1.x version will work when > my app starts ru

[rspec-users] Possible bug in proxy.rb in Rspec 1.3.1

2011-03-05 Thread Andrew Selder
In the proxy.rb file, Rspec 1.3.1 added a stanza to the it/else stack elsif @target.is_a?(Class) @target.superclass.send(sym, *args, &block) This just seems wrong to me and I'm pretty sure it's causing catastrophic errors in my build. Consider the following example: require 's

Re: [rspec-users] db:test:prepare interfering with rake spec pattern

2011-03-05 Thread David Chelimsky
On Mar 4, 2011, at 9:53 PM, Mario Aquino wrote: > I have a tricky problem with running rake spec in a Rails 3.0.3 > project (using rspec-2.5.0, rspec-rails and rake 0.8.7). It may be > that this mailing list is not the correct one to ask for help, but I > am hoping that it is. When I run 'rake s

Re: [rspec-users] Rails 3 Upgrade

2011-03-05 Thread David Kahn
On Tue, Mar 1, 2011 at 7:33 PM, Lakshmanan wrote: > Hi, > > I am upgrading a rails 2.1.0 app to Rails 3. Just a note, you may want to try upgrading first to the latest Rails 2 (is it still 2.3.9?) version. You will still have a lot to do jumping between the latest 2 and 3 but seems that a lot o