[rspec-users] TextMate Sidebar

2007-12-06 Thread Jed Hurt
Hey David, I just watched the RubyConf recording of your RSpec session and noticed that you're using a modified version of TextMate that uses a sidebar instead of a project drawer. Where did you find that mod? ___ rspec-users mailing list rspec-users@ruby

[rspec-users] weird behavior of mocking ruby class methods

2007-12-06 Thread Shaker
Hello everyone: After I played with Rspec for three months, I realized a weird behavior of mocking ruby classes (e.g. File). Please let me post a sample code before I point out the problems: #file_reader.rb (to be tested) class FileReader def do_read File.read('asd.txt') end

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread Scott Taylor
On Dec 6, 2007, at 5:25 PM, David Chelimsky wrote: > On Dec 6, 2007 4:22 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> >> On Dec 6, 2007, at 5:12 PM, David Chelimsky wrote: >> >>> On Dec 6, 2007 4:08 PM, Scott Taylor >>> <[EMAIL PROTECTED]> wrote: On Dec 6, 2007, at 4:41 PM, Dav

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread David Chelimsky
On Dec 6, 2007 4:22 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > > On Dec 6, 2007, at 5:12 PM, David Chelimsky wrote: > > > On Dec 6, 2007 4:08 PM, Scott Taylor > > <[EMAIL PROTECTED]> wrote: > >> > >> On Dec 6, 2007, at 4:41 PM, David Chelimsky wrote: > >> > >>> On Dec 6, 2007 3:37 PM, Scott Ta

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread Scott Taylor
On Dec 6, 2007, at 5:12 PM, David Chelimsky wrote: > On Dec 6, 2007 4:08 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> On Dec 6, 2007, at 4:41 PM, David Chelimsky wrote: >> >>> On Dec 6, 2007 3:37 PM, Scott Taylor >>> <[EMAIL PROTECTED]> wrote: What is the appropriate way t

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread David Chelimsky
On Dec 6, 2007 4:08 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Dec 6, 2007, at 4:41 PM, David Chelimsky wrote: > > > On Dec 6, 2007 3:37 PM, Scott Taylor > > <[EMAIL PROTECTED]> wrote: > >> > >> > >> What is the appropriate way to stub out (and put an expectation on > >> Object#__send__), w

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread Scott Taylor
On Dec 6, 2007, at 4:41 PM, David Chelimsky wrote: > On Dec 6, 2007 3:37 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> >> What is the appropriate way to stub out (and put an expectation on >> Object#__send__), without getting warnings from the Rspec mock >> library? > > Come on Scott -

Re: [rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread David Chelimsky
On Dec 6, 2007 3:37 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > > What is the appropriate way to stub out (and put an expectation on > Object#__send__), without getting warnings from the Rspec mock library? Come on Scott - you know better than that :) Error please? > > Scott > > > >

[rspec-users] mock libraries, Object#send, and Object#__send__

2007-12-06 Thread Scott Taylor
What is the appropriate way to stub out (and put an expectation on Object#__send__), without getting warnings from the Rspec mock library? Scott ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-use

Re: [rspec-users] Mocks? Really?

2007-12-06 Thread Tom Stuart
On 6 Dec 2007, at 16:56, Andy Goundry wrote: > This is handy and keeps the view test isolated from changes to your > models, but is that really the point? Yes, that's part of the whole idea of using mocks. (Similarly, two interacting models will be isolated from each other's implementation.) >

Re: [rspec-users] Mocks? Really?

2007-12-06 Thread David Chelimsky
On Dec 6, 2007 10:56 AM, Andy Goundry <[EMAIL PROTECTED]> wrote: > OK, so i've played a bit with mocks and mock_models in controller and > view tests and i have a question. Is this statement really correct: > > "We highly recommend that you exploit the mock framework here rather > than providing re

[rspec-users] Mocks? Really?

2007-12-06 Thread Andy Goundry
OK, so i've played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to