File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
test/language/testdata/ruby Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
8
## [ Unreleased]
9
+ ### Fixed
10
+ - (Ruby) Support ` And ` and ` But ` step definition annotations ([ #211 ] ( https://github.com/cucumber/language-service/pull/211 ) )
9
11
10
12
## [ 1.6.0] - 2024-05-12
11
13
### Added
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export const rubyLanguage: Language = {
76
76
(regex) @expression
77
77
]
78
78
)
79
- (#match? @method "(Given|When|Then)$")
79
+ (#match? @method "(Given|When|Then|And|But )$")
80
80
) @root
81
81
` ,
82
82
] ,
Original file line number Diff line number Diff line change 1
1
Given ( 'a {uuid}' ) do |uuid |
2
2
end
3
3
4
- Given ( 'a {date}' ) do |date |
4
+ When ( 'a {date}' ) do |date |
5
5
end
6
6
7
- Given ( 'a {planet}' ) do |planet |
7
+ Then ( 'a {planet}' ) do |planet |
8
8
end
9
9
10
- Given ( /^a regexp$/ ) do
10
+ And ( /^a regexp$/ ) do
11
11
end
12
12
13
- Given ( 'an {undefined-parameter}' ) do |date |
13
+ But ( 'an {undefined-parameter}' ) do |date |
14
14
end
15
15
16
16
Given ( 'the bee\'s knees' ) do |date |
You can’t perform that action at this time.
0 commit comments