Sha256: 26e102a32328debee9982b77174169989bce2bc99fc630173a403927699c8be7

Contents?: true

Size: 244 Bytes

Versions: 5

Compression:

Stored size: 244 Bytes

Contents

module Mongoid
  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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-minitest-0.1.1 lib/matchers/helpers.rb
mongoid-minitest-0.1.0 lib/matchers/helpers.rb
mongoid-minitest-0.0.3.1 lib/matchers/helpers.rb
mongoid-minitest-0.0.3 lib/matchers/helpers.rb
mongoid-minitest-0.0.2 lib/matchers/helpers.rb