标签: minitest
是否可以在Minitest中测试单个方法?每个示例都显示测试一个类。我希望能够在describe SaySomething do行出现问题的情况下执行类似的操作
describe SaySomething do
def say_something "something" end describe SaySomthing do it 'should return something' do value(say_something).must_equal 'something' end end