Capybara测试:Errno :: ETIMEDOUT操作超时 - 连接(2)

时间:2012-10-22 05:53:51

标签: ruby-on-rails capybara

在执行过程中遇到以下错误,其他人遇到了以下问题?

Stopped due to exception:

Errno::ETIMEDOUT Operation timed out - connect(2)

/Users/dan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
/Users/dan/Documents/Working Directory/One-Big-Switch-Website/spec/requests/admin/role_editing_spec.rb:10:in `block (2 levels) in '

我的测试:

it "as a super admin I can add roles to users" do
    visit admin_dashboard_index_path ----- line 10
    login_admin_user(super_admin)
    visit admin_users_path

    page.should have_css("h2", :text => "Users")
    page.within("tr", :text => user.email) do
      click_link "Update"
    end
    page.should have_field("user_password")
  end

0 个答案:

没有答案