lib/matchers/helpers.rb in mongoid-minitest-0.1.1 vs lib/matchers/helpers.rb in mongoid-minitest-0.1.2

- old
+ new

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