Hello
I am trying to spec a singleton ruby class,
And I am having a little trouble because my specs are not more isolated,
as I am getting the same instace of the class for all my examples.
How should I do this.?
Which is the correct way of specing a singleton class?
Thanks
Juanma
--
Posted via
Hi folks,
DHH has tentatively suggested a Rails 3 beta this month, so an innocent
question: what's the plan, such as it is, for Rails 3 support in RSpec?
Personally there's no way I'll be able to move any of my applications to Rails
3 until I can run the specs.
Absent any specific information
On Tue, Jan 19, 2010 at 7:13 AM, Tom Stuart t...@experthuman.com wrote:
Hi folks,
DHH has tentatively suggested a Rails 3 beta this month, so an innocent
question: what's the plan, such as it is, for Rails 3 support in RSpec?
Personally there's no way I'll be able to move any of my
On 19 Jan 2010, at 13:22, David Chelimsky wrote:
Start here: http://blog.davidchelimsky.net/2010/01/12/rspec-2-and-rails-3/
I'll be making some more announcements about rspec-2 soon. Our goal is
to release rspec-rails-2.0.0.a1 when rails-3.0.0.pre comes out.
Oh, that's great, thanks David.
On Tue, Jan 19, 2010 at 7:25 AM, Tom Stuart t...@experthuman.com wrote:
On 19 Jan 2010, at 13:22, David Chelimsky wrote:
Start here: http://blog.davidchelimsky.net/2010/01/12/rspec-2-and-rails-3/
I'll be making some more announcements about rspec-2 soon. Our goal is
to release
On Tue, Jan 19, 2010 at 6:03 AM, Juanma Cervera li...@ruby-forum.com wrote:
Hello
I am trying to spec a singleton ruby class,
And I am having a little trouble because my specs are not more isolated,
as I am getting the same instace of the class for all my examples.
How should I do this.?
Yes, I mean the Singleton Pattern.
I am not an expert with OO, but I supposed this pattern was what best
fits my needs of a class that represent a unique resource in the system,
in this case it's something like a queue of jobs that I have to
administrate in real time.
Am I right?
Maybe not,
On Jan 19, 2010, at 2:33 pm, Juanma Cervera wrote:
Yes, I mean the Singleton Pattern.
I am not an expert with OO, but I supposed this pattern was what best
fits my needs of a class that represent a unique resource in the system,
in this case it's something like a queue of jobs that I have