0
내가 장에서, 행동 책 레일 (3)을 가지고있다 터미널에서 두오이에서 레일 (3)
Feature: My Account
In order to manage my account
As a money minder
I want to ensure my money doesn't get lost
Scenario: Taking out money
Given I have an account
And it has a balance of 100
When I take 10
Then my balance should be 90
내가 가지고이 :
➜ accounts cucumber features
Feature: My Account
In order to manage my account
As a money minder
I want to ensure my money doesn't get lost
Scenario: Taking out money # features/account.feature:6
Given I have an account # features/account.feature:7
And it has a balance of 100 # features/account.feature:8
When I take 10 # features/account.feature:9
Then my balance should be 90 # features/account.feature:10
1 scenario (1 undefined)
4 steps (4 undefined)
0m0.002s
You can implement step definitions for undefined steps with these snippets:
Given(/^I have an account$/) do
pending # express the regexp above with the code you wish you had
end
Given(/^it has a balance of (\d+)$/) do |arg1|
pending # express the regexp above with the code you wish you had
end
When(/^I take (\d+)$/) do |arg1|
pending # express the regexp above with the code you wish you had
end
Then(/^my balance should be (\d+)$/) do |arg1|
pending # express the regexp above with the code you wish you had
end
If you want snippets in a different programming language,
just make sure a file with the appropriate file extension
exists where cucumber looks for step definitions.
내가
Rails -v 3.2.12
Ruby -v 1.9.3
cucumber (1.3.2)
cucumber-rails (1.2.1)
오전
그럼 어떻게해야합니까? 또한이 책은 다음 장에서 cucmber를 사용하고 있습니다. 내가 설명을 필요로하므로 나를 오이를 사용하는
그것의 처음, 내가 구글에 검색하고 기사를 발견하지만 난 그것에서 요점을 파악하지 않았다, 나는 내가 쉽게 설명을