[rspec-users] stubbing Time.zone.now for model tests fails for Rails 2.3.1

2009-03-11 Thread David Schmidt
ot; and "@timezone.stub!") then I don't get that error, but without fixed times some of our tests fail due to the variable time. Has anyone else run into this problem and come up with a solution to getting a fixed time back from Time.zone.now? David Schmidt dav...@tower-mt.com

Re: [rspec-users] Problems stubbing @controller.stub!(:send)

2008-11-04 Thread David Schmidt
On Nov 4, 2008, at 1:53 PM, Pat Maddox wrote: David Schmidt <[EMAIL PROTECTED]> writes: In one of my controller tests I'm testing a method which uses self.send() to do some pre-processing if that private method name is defined: # If this task requires some additional

[rspec-users] Problems stubbing @controller.stub!(:send)

2008-11-04 Thread David Schmidt
quot; Is there any way that I can stub out *just* the :send with "private method" and leave the other one alone to execute? Thank you, David Schmidt [EMAIL PROTECTED] ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Problems running RSpec from w/in TextMate

2008-05-10 Thread David Schmidt
e bundle the window that opens when you run Command-R should be titled "Run Examples". If it just says "Run" then the file type probably isn't set to RSpec. Hope that helps! David Schmidt On May 10, 2008, at 8:30 AM, Wayne Molina wrote: Hello everyone, I'm new

Re: [rspec-users] "Why not MockEverthing" or why use fixtures for all tests?

2008-03-19 Thread David Schmidt
On Mar 19, 2008, at 8:42 AM, Glenn Ford wrote: > My primary concern when writing my specs that are to cover complicated > features is that I do NOT want false confidence. If I write a spec, > and it passes, I want that to mean it works in my app. When the spec > goes green, my next step is to g

[rspec-users] "Why not MockEverthing" or why use fixtures for all tests?

2008-03-18 Thread David Schmidt
also have good coverage showing that they actually believe in tests. So please look into Radiant, you'll find it most helpful I think. --- END OF EMAIL--- Thank you, David Schmidt ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] RSpec view test for :partial with :locals?

2008-03-11 Thread David Schmidt
I'm currently working on some RSpec view tests and I'm having problems with expect_render. Most of the expect_render's work fine, but in one of my views I have: <%= render :partial => "user_cloud", :locals => {:user => @featured_user} %> I see that expect_render supports ":object" or ":col