Re: [rspec-users] Module instance variable remains set

2010-02-22 Thread Matt Wynne
On 22 Feb 2010, at 19:45, Harm wrote: Hi, I have an issue with rSpec when spec'ing a module. The module in question looks like this: module Sheep def self.sound @sound ||= produce_sound() end end This module is used all around the application (and corresponding specs) and somehow values

Re: [rspec-users] Module instance variable remains set

2010-02-22 Thread Harm
Addendum: I'm using rspec 1.3.0, rspec-rails 1.3.2 and ruby 1.9.1p129 On Feb 22, 8:45 pm, Harm wrote: > Hi, > > I have an issue with rSpec when spec'ing a module. The module in > question looks like this: > > module Sheep >   def self.sound >     @sound ||= produce_sound() >   end > end > > This

[rspec-users] Module instance variable remains set

2010-02-22 Thread Harm
Hi, I have an issue with rSpec when spec'ing a module. The module in question looks like this: module Sheep def self.sound @sound ||= produce_sound() end end This module is used all around the application (and corresponding specs) and somehow values of @sound leak between each spec. The