我想知道什麼是以下行做:World()方法在ruby中做了什麼?
World(::Cucumber::Rails::Capybara::SelectDatesAndTimes)
因爲我越來越
uninitialized constant Cucumber::Rails::Capybara::SelectDatesAndTimes::XPath (NameError)
而且我不明白什麼是應該做的,告訴什麼是錯的:-)
編輯:我gisted我的Gemfile:https://gist.github.com/822480和我的寶石名單上的Windows Vista 32位(https://gist.github.com/822483)和Ubuntu特立獨行的32位https://gist.github.com/822491。兩者都運行紅寶石1.8.7。請注意,我正在使用這個黃瓜護欄:https://github.com/johnf/cucumber-rails,因爲我的最終目標是讓這些日期時間選擇器與水豚一起使用。
我還發現,在Linux上我得到另一個錯誤信息:
Unable to find '#<XPath::Union:0xb6e078b8>' (Capybara::ElementNotFound)
好吧,我添加了一些環境信息。如果我沒有添加一些有用的東西,請讓我知道:-) – Thiago 2011-02-11 15:31:23