Skip to content

Instantly share code, notes, and snippets.

@JonathonMA
Created March 20, 2014 01:33
Show Gist options
  • Save JonathonMA/9655537 to your computer and use it in GitHub Desktop.
Save JonathonMA/9655537 to your computer and use it in GitHub Desktop.
require 'test_helper'
class MiniTestDoesntWorkWithUnenumerableRangesTest < ActiveSupport::TestCase
test ":(" do
period = Time.current - 1.week .. Time.current
mock = MiniTest::Mock.new
mock.expect :foo, true, [period]
mock.foo period
assert mock.verify
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment