Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add documentation about the NoFreeze System #2

Open
shingara opened this Issue · 1 comment

2 participants

@shingara

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
    end
  end
end

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
Owner

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 referenced this issue from a commit in shingara/ice_nine
@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
b69d109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.