frodsan/minitest-activemodel

View on GitHub
lib/matchers/helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage
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