3
我正在測試Aruba的Gem。我的問題是,即使我在bin目錄中沒有任何東西,當我運行「可執行文件」時,步驟就會通過。 這是場景。Aruba的Ruby gem CLI測試
Scenario: Send SMS
When I run `serialsms`
Then message should be sent
功能/支持/ env.rb
$LOAD_PATH.push File.join(File.dirname(__FILE__), "/../../lib")
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
require 'serial_sms'
require 'aruba/cucumber'
黃瓜輸出
Scenario: Send SMS # features/send_sms_cli.feature:7
When I run `serialsms` # aruba-0.4.9/lib/aruba/cucumber.rb:56
Then message should be sent # features/send_sms_cli.feature:9
1 scenario (1 undefined)
2 steps (1 undefined, 1 passed)
0m0.123s
You can implement step definitions for undefined steps with these snippets:
Then /^message should be sent$/ do
pending # express the regexp above with the code you wish you had
end
這是阿魯巴的正常行爲還是我做錯了什麼。