Sha256: fb67bf4c0e0f5143e9d4add7de200961372d235d659f1ab8ad5983a998e60bf4

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 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.5 lib/matchers/helpers.rb
mongoid-minitest-0.1.4 lib/matchers/helpers.rb
mongoid-minitest-0.1.3 lib/matchers/helpers.rb
mongoid-minitest-0.1.3.pre lib/matchers/helpers.rb
mongoid-minitest-0.1.2 lib/matchers/helpers.rb