Add documentation about the NoFreeze System #2

shingara opened this Issue Nov 29, 2012 · 1 comment


None yet

2 participants


By IRC, dkubb say me we can avoid some freeze on some NameSpace by using the IceNine::Freezer::NoFreeze.

By example if I want not freeze by IceNine all object in RSpec you can do :

module IceNine
  class Freezer
    class RSpec < NoFreeze

Can be really usefull in your test.

Maybe a configuration in IceNince can be more easy with a design like :

IceNince.no_freeze_namespace([Rspec, Spec, Mocha])
dkubb commented Nov 29, 2012

That's a good idea. I may add something like IceNine.no_freeze(*mods). I would then exclude a few common namespaces like Spec, RSpec, Mocha and Test.

@shingara shingara added a commit to shingara/ice_nine that referenced this issue Dec 9, 2012
@shingara shingara Add method to simplest the NoFreeze system by adding a class method
If you want not freeze some namespace you can do

IceNine.no_freeze([RSpec, Mocha])

fixed #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment