/
buster-mode.feature
43 lines (40 loc) · 1.17 KB
/
buster-mode.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Feature: Toggle deferred
In order to quickly defer a test
As a buster using emacs user
I want to just press key please
Scenario: Deferring a test
When I insert:
"""
buster.testCase('Building Page', {
"contains title after loading page": function () {
assert.match(document.body.innerHTML, "Zombie TDD");
}
});
"""
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should see "//contains"
Scenario: Undeferring a test
When I insert:
"""
buster.testCase('Building Page', {
"//contains title after loading page": function () {
assert.match(document.body.innerHTML, "Zombie TDD");
}
});
"""
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should not see "//contains"
Scenario: Deferring a single quoted test
When I insert:
"""
buster.testCase('Building Page', {
'contains title after loading page': function () {
assert.match(document.body.innerHTML, "Zombie TDD");
}
});
"""
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should see "'//contains"