Bug #9311 ยป bug9311-test.diff
| test/ruby/test_class.rb | ||
|---|---|---|
|
assert_predicate(self.singleton_class, :singleton_class?, feature7609)
|
||
|
assert_not_predicate(self.class, :singleton_class?, feature7609)
|
||
|
end
|
||
|
def test_singleton_class_p_module_function
|
||
|
bug9311 = '[Bug #9311]'
|
||
|
assert_nothing_raised(bug9311) do
|
||
|
mod = Module.new do module_function :singleton_class? end
|
||
|
end
|
||
|
end
|
||
|
end
|
||