Sha256: 8ba8f6e8cdf336564e1267e064cf3be7c3e304af74de6bd47b47b7f379a94057

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

module MiniTest
  module Matchers
    module ActiveModel
      module Helpers # :nodoc:
        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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-activemodel-1.1.0 lib/matchers/helpers.rb
minitest-activemodel-1.0.0 lib/matchers/helpers.rb