cucumber-compatibility-kit 13.0.0 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/attachments/attachments.feature.rb +13 -24
- data/features/hooks/hooks.feature.rb +1 -6
- data/features/skipped/skipped.feature +8 -8
- data/features/skipped/skipped.feature.ndjson +8 -8
- data/features/skipped/skipped.feature.rb +5 -5
- data/features/stack-traces/stack-traces.feature +4 -6
- data/features/stack-traces/stack-traces.feature.ndjson +3 -3
- data/features/stack-traces/stack-traces.feature.rb +1 -1
- data/features/undefined/undefined.feature +7 -8
- data/features/undefined/undefined.feature.ndjson +6 -6
- data/features/undefined/undefined.feature.rb +1 -1
- data/features/unknown-parameter-type/unknown-parameter-type.feature +1 -1
- data/features/unknown-parameter-type/unknown-parameter-type.feature.ndjson +1 -1
- data/features/unknown-parameter-type/unknown-parameter-type.feature.rb +2 -2
- data/lib/cck/helpers.rb +11 -0
- data/lib/cck/keys_checker.rb +64 -0
- data/lib/cck/messages_comparator.rb +97 -0
- data/lib/cucumber/cucumber-compatibility-kit.rb +57 -0
- data/lib/cucumber-compatibility-kit.rb +1 -57
- data/lib/keys_checker.rb +1 -64
- data/lib/messages_comparator.rb +1 -88
- data/lib/shared_examples.rb +7 -30
- data/spec/cck/keys_checker_spec.rb +67 -0
- data/spec/cck/messages_comparator_spec.rb +29 -0
- data/spec/{cucumber-compatibility-kit_spec.rb → cucumber/cucumber-compatibility-kit_spec.rb} +10 -19
- metadata +13 -11
- data/spec/capture_warnings.rb +0 -75
- data/spec/keys_checker_spec.rb +0 -95
- data/spec/messages_comparator_spec.rb +0 -37
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rspec'
|
4
|
-
require 'cucumber/messages'
|
5
|
-
require_relative '../lib/messages_comparator'
|
6
|
-
|
7
|
-
describe CCK::MessagesComparator do
|
8
|
-
context 'when executed as part of a CI' do
|
9
|
-
before { allow(ENV).to receive(:[]).with('CI').and_return(true) }
|
10
|
-
|
11
|
-
it 'ignores any detected CI messages' do
|
12
|
-
detected_message_ci = Cucumber::Messages::Ci.new(name: 'Some CI')
|
13
|
-
detected_message_meta = Cucumber::Messages::Meta.new(ci: detected_message_ci)
|
14
|
-
detected_message_envelope = Cucumber::Messages::Envelope.new(meta: detected_message_meta)
|
15
|
-
|
16
|
-
expected_message_meta = Cucumber::Messages::Meta.new
|
17
|
-
expected_message_envelope = Cucumber::Messages::Envelope.new(meta: expected_message_meta)
|
18
|
-
|
19
|
-
comparator = described_class.new(CCK::KeysChecker, [detected_message_envelope], [expected_message_envelope])
|
20
|
-
|
21
|
-
expect(comparator.errors).to be_empty
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'ignores any expected CI messages' do
|
25
|
-
detected_message_meta = Cucumber::Messages::Meta.new
|
26
|
-
detected_message_envelope = Cucumber::Messages::Envelope.new(meta: detected_message_meta)
|
27
|
-
|
28
|
-
expected_message_ci = Cucumber::Messages::Ci.new(name: 'Some CI')
|
29
|
-
expected_message_meta = Cucumber::Messages::Meta.new(ci: expected_message_ci)
|
30
|
-
expected_message_envelope = Cucumber::Messages::Envelope.new(meta: expected_message_meta)
|
31
|
-
|
32
|
-
comparator = described_class.new(CCK::KeysChecker, [detected_message_envelope], [expected_message_envelope])
|
33
|
-
|
34
|
-
expect(comparator.errors).to be_empty
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|