我在铁路3.1.0和铁路2克。 我愿在我的光谱档案中重述以下样本代码:
describe "Making things" do
it "should make a thing" do
# Make the thing
...
# This is the same statement as that present in the "should make another
# thing" example (read below for more information)
response.body.should include("Hello World")
end
it "should make another thing" do
# Make another thing
...
# The same statement as that present in the "should make a thing" example
response.body.should include("Hello World")
end
end
我如何对以上<条码>的答复,应当包括(“Hello World”),以便写出较少的代码? 这就是,我如何测试<代码>response.one。 内容是使用对两个光谱实例都有效的一份说明?