我是Rails的新手,并且无法理解某些结构。RSpec方法问题
我下面的Rails Tutorial,看到类似下面的代码:
require 'spec_helper'
describe "Users" do
describe "signup" do
describe "failure" do
it "should not make a new user" do
visit signup_path
fill_in "Name", :with => ""
fill_in "Email", :with => ""
fill_in "Password", :with => ""
fill_in "Confirmation", :with => ""
click_button
response.should render_template('users/new')
response.should have_selector("div#error_explanation")
end
end
end
end
我想现在做类似的测试,但我不知道从哪里开始。我试图在互联网上查找“访问”方法的文档,但没有成功。它是Rails测试套件的一部分吗? RSpec的?我将如何去回答这个问题,以及对集成测试有很好的理解?有没有可以使用的彻底教程?
看起来像是在Webrat?太多事情一次发生。是否有任何“综合”教程集成测试? – skaz 2011-04-15 16:06:05