Sha256: 7406d6fefdf06e982ec48844fecd3f085bff4456cd333e5597c3857b004c72e3
Contents?: true
Size: 230 Bytes
Versions: 2
Compression:
Stored size: 230 Bytes
Contents
module ExampleGroupHelpers def setup_thing(&block) before do Object.const_set(:Thing, Class.new(&block)) end after do Object.send(:remove_const, :Thing) if Object.const_defined?(:Thing) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.1.1 | spec/support/example_group_helpers.rb |
mutant-0.1.0 | spec/support/example_group_helpers.rb |