Skip to content

Commit

Permalink
Skip removing the model if the class name starts with "#"
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Jun 6, 2010
1 parent f2abc88 commit 0f3677a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dm-core/spec/lib/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def self.cleanup_models
descendants.concat(model.descendants.to_a - [ model ])

model_name = model.name.to_s.strip
unless model_name.empty?
unless model_name.empty? || model_name[0] == ?#
parts = model_name.split('::')
constant_name = parts.pop.to_sym
base = parts.empty? ? Object : Object.full_const_get(parts.join('::'))
Expand Down

0 comments on commit 0f3677a

Please sign in to comment.