spec/spec_helper.rb in finite_machine-0.1.0 vs spec/spec_helper.rb in finite_machine-0.2.0

- old
+ new

@@ -10,6 +10,15 @@ # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' + + # Remove defined constants + config.before :each do + [:Car, :Logger].each do |class_name| + if Object.const_defined?(class_name) + Object.send(:remove_const, class_name) + end + end + end end