使用Cucumber + Webrat和Button给我一个无连接错误

时间:2011-06-14 22:56:08

标签: ruby-on-rails cucumber webrat

这是黄瓜命令(与我一直在测试的其他表格一起工作):

And I press "Save"

这是错误消息:

No connection could be made because the target machine actively refused it. - connect(2) (Errno::ECONNREFUSED)

C:/Ruby187/lib/ruby/1.8/net/http.rb:560:in `initialize'
C:/Ruby187/lib/ruby/1.8/net/http.rb:560:in `open'
C:/Ruby187/lib/ruby/1.8/net/http.rb:560:in `connect'
C:/Ruby187/lib/ruby/1.8/timeout.rb:53:in `timeout'
C:/Ruby187/lib/ruby/1.8/timeout.rb:101:in `timeout'
C:/Ruby187/lib/ruby/1.8/net/http.rb:560:in `connect'
C:/Ruby187/lib/ruby/1.8/net/http.rb:553:in `do_start'
C:/Ruby187/lib/ruby/1.8/net/http.rb:542:in `start'
C:/Ruby187/lib/ruby/1.8/net/http.rb:1035:in `request'
C:/Ruby187/lib/ruby/1.8/net/http.rb:845:in `post'
C:/Ruby187/lib/ruby/1.8/benchmark.rb:308:in `realtime'

这是haml代码:

- semantic_form_for current_user, :html => { :multipart => true } do |f| .actionbuttonbar
    %p.actionbutton
      = f.submit 'Save', { :class => "actionbutton" }

0 个答案:

没有答案