lib/matchers/helpers.rb in mongoid-minitest-0.0.1 vs lib/matchers/helpers.rb in mongoid-minitest-0.0.2

- old
+ new

@@ -2,8 +2,12 @@ module Matchers module Helpers def to_sentence(ary) ary.collect(&:inspect).to_sentence end + + def class_of(subject) + subject.is_a?(Class) ? subject : subject.class + end end end end