1
난 상추 시험 (장고)에서 배경을 쓸 수있는 방법
가, 배경이 각각의 시나리오 전에 실행, 오이 내가 그런 배경을 작성할 수 있습니다배경, 장고
이Feature: Multiple site support
As a Mephisto site owner
I want to host blogs for different people
In order to make gigantic piles of money
Background:
Given a global administrator named "Greg"
And a blog named "Greg's anti-tax rants"
And a customer named "Dr. Bill"
And a blog named "Expensive Therapy" owned by "Dr. Bill"
Scenario: Dr. Bill posts to his own blog
Given I am logged in as Dr. Bill
When I try to post to "Expensive Therapy"
Then I should see "Your article was published."
Scenario: Dr. Bill tries to post to somebody else's blog, and fails
Given I am logged in as Dr. Bill
When I try to post to "Greg's anti-tax rants"
Then I should see "Hey! That's not your blog!"
배경 –
@AydarOmurbekov 작동하지 않는 경우 [이 스크린 캐스트 (http://ascii.io/a/5219) I보기 방금 녹음되었습니다. – falsetru
@falsetru - 스크린 캐스트가 더 이상 존재하지 않습니다. – Tony