填写完字段并按下按钮后,浏览器(由脚本打开)说“在 127 处等待页面......”但它永远不会去任何地方(我等了 30 多分钟)。我正在 ubuntu 10.04 机器上进行测试。有任何想法吗?
describe "GET 'new'", :js => true do
it "will log in" do
@admin = FactoryGirl.create(:admin)
puts @admin
puts @admin.attributes
visit '/'
fill_in 'user_login', :with => @admin.email
fill_in 'user_password', :with => @admin.password
click_on 'Sign in'
response.should be_success
end
it "should be successful" do
visit '/things/new'
page.should have_xpath('//form')
end
end