Sha256: 12fbefd43e5717831005f10e564fc00b69203c98c06a4c8063522f1b7bd6501d
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
# encoding: UTF-8 # frozen_string_literal: true Bundler.require :default, :development class MethodNotImplementedTest < Test::Unit::TestCase class Foo def bar method_not_implemented end class << self def baz method_not_implemented end end end def test_method_not_implemented_works_with_classes assert_raise(MethodNotImplemented) { Foo.new.bar } end def test_method_not_implemented_works_with_modules assert_raise(MethodNotImplemented) { Foo.baz } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
method-not-implemented-1.0.1 | test/test_method_not_implemented.rb |