File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ @ruby27_required
1
2
Feature : Generate Open API Specification from test examples
2
3
3
4
Background :
Original file line number Diff line number Diff line change 9
9
config . match = :prefer_exact
10
10
config . ignore_hidden_elements = false
11
11
end
12
+
13
+ Before ( '@ruby27_required' ) do |scenario |
14
+ if RUBY_VERSION < '2.7'
15
+ raise Cucumber ::Pending , "Skipped on Ruby #{ RUBY_VERSION } (requires >= 2.7)"
16
+ end
17
+ end
Original file line number Diff line number Diff line change 7
7
8
8
describe RspecApiDocumentation ::HttpTestClient do
9
9
before ( :all ) do
10
+ if RUBY_VERSION < '2.7'
11
+ skip ( "Skipped on Ruby #{ RUBY_VERSION } (requires >= 2.7)" )
12
+ end
10
13
WebMock . allow_net_connect!
11
14
# Capybara.server= was introduced in later versions
12
15
# For older versions, we use the Capybara::Server directly with webrick
You can’t perform that action at this time.
0 commit comments