Displaying 4 results from an estimated 4 matches for "jbrains".
Did you mean:
brains
2010 Sep 08
4
Re-using Rspec Matchers
Hey Everyone,
Is it good practice to call matchers from within matchers? Kinda like this pattern:
See: http://gist.github.com/570467
--
Brian
2006 Dec 02
0
Fwd: Re: Mocha and ActiveRecord
---------- Forwarded message ----------
From: J. B. Rainsberger <jbrains762 at gmail.com>
Date: 02-Dec-2006 02:48
Subject: Re: Mocha and ActiveRecord
To: ruby-talk ML <ruby-talk at ruby-lang.org>
James Mead wrote:
> On 28/11/06, J. B. Rainsberger <jbrains762 at gmail.com> wrote:
>>
>> Suppose I have an Order, which has_many OrderItems. Su...
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in
`method_
missing'': undefined method `describe'' for main:Object (NoMethodError)
from ./sandbox_controller_spec.rb:7
from
2009 Oct 14
14
spec-ing private methods?
On Wed, Oct 14, 2009 at 5:49 PM, Scott Taylor <scott at railsnewbie.com> wrote:
>
> On Oct 14, 2009, at 3:36 PM, Joaquin Rivera Padron wrote:
>
> hello there,
> how do you tipically spec private methods? The thing is ? have something
> like this:
>
> def some_method
> ?? complex_method + other_complex_methods
> end
>
> private
> def complex_method...