阅读背景:

你如何“嵌套”或“分组”测试::单元测试?

来源:互联网 

RSpec has:

RSpec有:

describe "the user" do
  before(:each) do
    @user = Factory :user
  end

  it "should have access" do
    @user.should ...
  end
end
describe "the user" do
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: