<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>xwf287 (xuewenfei)</title>
    <link>https://ruby-china.org/xwf287</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>Chrome 中不论是 faye 还是 socket.io 都有问题</title>
      <description>&lt;p&gt;在涉及到不同的 port 的时候，chrome 中不论是 faye 还是 socket.io 都有问题，http 的状态老是 canceled&lt;/p&gt;</description>
      <author>xwf287</author>
      <pubDate>Wed, 09 Oct 2013 20:57:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/14627</link>
      <guid>https://ruby-china.org/topics/14627</guid>
    </item>
    <item>
      <title>Capybara 为什么必须要慢下来？</title>
      <description>&lt;p&gt;请看下面的代码 片段：
假设一道题目有 4 个答案（一个对的，3 个错的），这个功能是测试删除其中一个答案（最后一个）功能。
          answer_num_before=page.all("div.answer").size
          find("div.answer:last-child").find("span.actions").click_on 'delete'#删掉最后一个
      page.driver.browser.switch_to.alert.accept
      answer_num_after=page.all("div.answer").size
      answer_num_before.should equal(answer_num_after+1) &lt;/p&gt;

&lt;p&gt;本来期望 answer_num_after 比 answer_num_before 少一个，但测试结果却显示两者是相同的。&lt;/p&gt;

&lt;p&gt;没办法，只能让测试慢下来，
require 'selenium-webdriver'&lt;/p&gt;

&lt;p&gt;module ::Selenium::WebDriver::Remote
     class Bridge
       def execute(*args)
         res = raw_execute(*args)['value']
         sleep 0.5
         res
       end
     end
   end 
在测试的头部加上上面这段，这时，结果变绿了。&lt;/p&gt;

&lt;p&gt;好奇怪啊，哪位高人能够指点一下迷津？&lt;/p&gt;</description>
      <author>xwf287</author>
      <pubDate>Fri, 31 May 2013 10:55:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/11366</link>
      <guid>https://ruby-china.org/topics/11366</guid>
    </item>
    <item>
      <title>有人用 RubyMine 吗？</title>
      <description>&lt;p&gt;使用 Ruby Mine 的人好像不多啊&lt;/p&gt;</description>
      <author>xwf287</author>
      <pubDate>Thu, 30 May 2013 12:40:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/11344</link>
      <guid>https://ruby-china.org/topics/11344</guid>
    </item>
  </channel>
</rss>
