Sha256: 5f5b9eb69080199c30506bb86818e5a8a5a948c613961cb3ef4f55a086627b0d
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
require 'pry' require 'es_searchable' require 'minitest/autorun' require 'minitest/pride' require 'minitest/mock' require 'mocha/mini_test' require 'active_support/all' # Filter out Minitest backtrace while allowing backtrace from other libraries # to be shown. Minitest.backtrace_filter = Minitest::BacktraceFilter.new # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } ActiveSupport::TestCase.test_order = :random class ActiveSupport::TestCase def assert_call obj, method, *args, &blk return_value = if args.last && args.last.is_a?(Hash) && args.last.key?(:return_value) args.pop[:return_value] end mock = MiniTest::Mock.new mock.expect(:call, return_value, args) obj.stub(method, mock, &blk) mock.verify end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
es_searchable-0.2.1 | test/test_helper.rb |
es_searchable-0.2.0 | test/test_helper.rb |