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
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
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
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
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
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
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 -
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
>
>
>
>
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
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.)
>
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
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
12 matches
Mail list logo