Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.55 kB
require "abstract_unit"
require "active_record"
class SomeRandomModel < ActiveRecord::Base; end
class SpecTypeTest < ActiveSupport::TestCase
def assert_support actual
assert_equal ActiveSupport::TestCase, actual
end
def assert_spec actual
assert_equal MiniTest::Spec, actual
end
def test_spec_type_resolves_for_actitive_record_constants
assert_support MiniTest::Spec.spec_type(SomeRandomModel)
end
def test_spec_type_doesnt_resolve_random_strings
assert_spec MiniTest::Spec.spec_type("Unmatched String")
end
end
Jump to Line
Something went wrong with that request. Please try again.