Rails 中 rspec 测试的类型是什么? class 或模块或块或两者都不是?

What is the type of an rspec test in Rails? a class or a module or a block or neither?

我正在查看带有 *.rb 后缀的 rspec 文件的主体,但无法完全弄清楚它是什么类型的对象。

describe 块是命名空间 RSpec::ExampleGroups.

中的 class

specify 块是 RSpec::Core::Example

的实例