[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

[rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-21 Thread Andrew Selder
Is it possible to specify that certain tables not be cleared on each example. I've inherited a project where a good amount of enumerated data is stored in the database (US States, statuses, about 15-20 tables worth. Over all, it's a reasonable decision that leads to solid production code

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Andrew Selder
using Rails 2.1 RC1, and the tagged CURRENT version of both plugins. Thanks, Andrew On May 22, 2008, at 9:32 AM, David Chelimsky wrote: On May 21, 2008, at 9:49 PM, Andrew Selder wrote: Is it possible to specify that certain tables not be cleared on each example. I've inherited a proje

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Andrew Selder
Ashley, I am using rake db:migrate RAILS_ENV=test. The values I'm inserting into the tables using migrations are gone by the time the tests run. Andrew On May 22, 2008, at 7:07 AM, Ashley Moran wrote: On 22 May 2008, at 03:49, Andrew Selder wrote: It would be wonderful if ther

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Andrew Selder
, Andrew Selder <[EMAIL PROTECTED]> wrote: David, The static data generated in the migrations in being wiped away. I did a rake db:test:purge followed by rake db:migrate RAILS_ENV=test and then looked in my database to verify that the data was there and it was. And then when I run rak

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Andrew Selder
gems/1.8/gems/rails-2.0.991/lib/tasks/ databases.rake:99 I examined the connection item and it is pointing to the right DB. It's strange since the db:migrate task work in isolation. Anyway, for now I'll manually setup my db for test. Thanks all, Andrew On May 22, 2008, a

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Andrew Selder
c_prereq) do |t| t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] end Thanks for all the assistance from everyone. Thanks, Andrew On May 22, 2008, at 10:25 AM, David Chelimsky wrote: On Thu

[rspec-users] Mixing mocking frameworks?

2008-05-31 Thread Andrew Selder
framework per example group or spec file. I'll grab a fork and start looking at it, but if you have any suggestions, they'd be greatly appreciated. Andrew -- Andrew Selder Lead Developer Boston Logic Technology Partners [EMAIL PROTECTED] www.bostonlogic.co

[rspec-users] Autotest/RSpec 1.1.4/Rails 2.1 Infinite Loop?

2008-06-03 Thread Andrew Selder
I just got back from RailsConf, and upgraded on of my development apps to 2.1, and now autotest is going into an infinite loop. It runs tests continuously instead of waiting for files to be saved before rerunning. Has anybody else seen this, or know how to get around it? Thanks, Andrew ___

[rspec-users] render_to_string confusing ControllerSpec

2008-06-16 Thread Andrew Selder
Hi all, I have a controller I'm trying to spec out, and I'm running into some issues with render_to_string. Basically, the show gets an array of objects, calls render_to_string for each of them, and then renders the show template. So I have the standard spec: it "should render show

Re: [rspec-users] render_to_string confusing ControllerSpec

2008-06-16 Thread Andrew Selder
d unless @markers.empty? @map.center_zoom_on_points_init(*(@markers.collect {|x| x.point})) else @map.center_zoom_init(@search.center, 12) end end Thanks, Andrew On Jun 16, 2008, at 9:34 PM, David Chelimsky wrote: On Jun 16, 2008, at 2:58 PM, Andrew Selder wrote:

Re: [rspec-users] render_to_string confusing ControllerSpec

2008-06-16 Thread Andrew Selder
the same failure and back trace. In addition to not working, the problem with stubbing out that render to string is that I can't then check for the presence of those strings in the final output. Thanks, Andrew On Jun 16, 2008, at 10:03 PM, David Chelimsky wrote: On Jun 16, 2008, at 8

Re: [rspec-users] render_to_string confusing ControllerSpec

2008-06-16 Thread Andrew Selder
od to the model. Regardless of all of the above, RSpec controller specs have issues when testing which template was rendered if you use render_to_string. Andrew On Jun 16, 2008, at 11:05 PM, David Chelimsky wrote: On Jun 16, 2008, at 9:19 PM, Andrew Selder wrote: I updated the spec to look l