1
我怎麼能寫在生菜試驗(Django的)背景,背景是每個場景之前運行, 黃瓜我能寫的背景像:背景生菜,Django的
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)予剛剛錄製。 – falsetru
@falsetru - 屏幕錄像不再存在。 – Tony