cucumber 3.0.0.pre.1 → 3.0.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.cucumberproignore +6 -0
- data/.rubocop.yml +13 -0
- data/.rubocop_todo.yml +1075 -0
- data/.travis.yml +42 -8
- data/CONTRIBUTING.md +8 -1
- data/Gemfile +16 -10
- data/History.md +96 -36
- data/README.md +12 -3
- data/Rakefile +12 -2
- data/appveyor.yml +26 -0
- data/cucumber.gemspec +15 -10
- data/cucumber.yml +9 -10
- data/examples/i18n/Rakefile +1 -1
- data/examples/i18n/ar/features/step_definitions/calculator_steps.rb +2 -2
- data/examples/i18n/ar/lib/calculator.rb +2 -2
- data/examples/i18n/bg/features/step_definitions/calculator_steps.rb +6 -6
- data/examples/i18n/ca/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/ca/lib/calculadora.rb +2 -2
- data/examples/i18n/cs/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/cs/lib/calculator.rb +3 -3
- data/examples/i18n/da/features/step_definitions/lommeregner_steps.rb +4 -4
- data/examples/i18n/da/lib/lommeregner.rb +2 -2
- data/examples/i18n/de/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/de/lib/calculator.rb +2 -2
- data/examples/i18n/el/features/step_definitions/calculator_steps.rb +5 -5
- data/examples/i18n/el/lib/calculator.rb +2 -2
- data/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +4 -4
- data/examples/i18n/en-lol/lib/basket.rb +2 -2
- data/examples/i18n/en-lol/lib/belly.rb +2 -2
- data/examples/i18n/en/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/en/lib/calculator.rb +2 -2
- data/examples/i18n/eo/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/eo/lib/calculator.rb +2 -2
- data/examples/i18n/es/features/step_definitions/calculador_steps.rb +5 -5
- data/examples/i18n/es/lib/calculador.rb +2 -2
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +4 -4
- data/examples/i18n/et/lib/kalkulaator.rb +3 -3
- data/examples/i18n/fi/features/step_definitions/laskin_steps.rb +3 -3
- data/examples/i18n/fi/lib/laskin.rb +1 -1
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +8 -8
- data/examples/i18n/fr/features/support/env.rb +1 -1
- data/examples/i18n/fr/lib/calculatrice.rb +2 -2
- data/examples/i18n/he/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/he/lib/calculator.rb +1 -1
- data/examples/i18n/hi/features/step_definitions/calculator_steps.rb +3 -3
- data/examples/i18n/hi/lib/calculator.rb +1 -1
- data/examples/i18n/ht/features/step_definitions/kalkilatris_steps.rb +4 -4
- data/examples/i18n/ht/lib/kalkilatris.rb +2 -2
- data/examples/i18n/hu/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/hu/lib/calculator.rb +1 -1
- data/examples/i18n/id/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/id/lib/calculator.rb +2 -2
- data/examples/i18n/it/features/step_definitions/calcolatrice_steps.rb +4 -4
- data/examples/i18n/it/lib/calcolatrice.rb +3 -3
- data/examples/i18n/ja/features/step_definitions/calculator_steps.rb +3 -3
- data/examples/i18n/ja/features/support/env.rb +1 -1
- data/examples/i18n/ja/lib/calculator.rb +2 -2
- data/examples/i18n/ko/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/ko/lib/calculator.rb +2 -2
- data/examples/i18n/lt/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/lt/lib/calculator.rb +2 -2
- data/examples/i18n/lv/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/lv/lib/calculator.rb +2 -2
- data/examples/i18n/no/features/step_definitions/kalkulator_steps.rb +3 -3
- data/examples/i18n/no/features/support/env.rb +1 -1
- data/examples/i18n/no/lib/kalkulator.rb +2 -2
- data/examples/i18n/pl/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/pl/lib/calculator.rb +2 -2
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +3 -3
- data/examples/i18n/pt/features/support/env.rb +1 -1
- data/examples/i18n/pt/lib/calculadora.rb +1 -1
- data/examples/i18n/ro/features/step_definitions/calculator_steps.rb +5 -5
- data/examples/i18n/ro/lib/calculator.rb +1 -1
- data/examples/i18n/ru/features/step_definitions/calculator_steps.rb +5 -5
- data/examples/i18n/sk/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/sk/lib/calculator.rb +2 -2
- data/examples/i18n/sr-Cyrl/features/step_definitions/calculator_steps.rb +3 -3
- data/examples/i18n/sr-Cyrl/features/support/env.rb +1 -1
- data/examples/i18n/sr-Cyrl/lib/calculator.rb +2 -2
- data/examples/i18n/sr-Latn/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/sr-Latn/lib/calculator.rb +2 -2
- data/examples/i18n/sv/features/step_definitions/kalkulator_steps.rb +3 -3
- data/examples/i18n/sv/lib/kalkulator.rb +2 -2
- data/examples/i18n/tr/features/step_definitions/hesap_makinesi_adimlari.rb +4 -4
- data/examples/i18n/tr/lib/hesap_makinesi.rb +2 -2
- data/examples/i18n/uk/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/uz/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/zh-CN/features/step_definitions/calculator_steps.rb +5 -5
- data/examples/i18n/zh-CN/lib/calculator.rb +2 -2
- data/examples/i18n/zh-TW/features/step_definitions/calculator_steps.rb +4 -4
- data/examples/i18n/zh-TW/lib/calculator.rb +2 -2
- data/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +3 -3
- data/examples/sinatra/features/step_definitions/add_steps.rb +4 -4
- data/examples/tcl/features/step_definitions/fib_steps.rb +2 -2
- data/examples/test_unit/features/step_definitions/test_unit_steps.rb +4 -4
- data/examples/watir/features/step_definitions/search_steps.rb +3 -3
- data/examples/watir/features/support/screenshots.rb +5 -5
- data/features/docs/api/list_step_defs_as_json.feature +21 -7
- data/features/docs/api/listen_for_events.feature +1 -1
- data/features/docs/api/run_cli_main_with_existing_runtime.feature +1 -0
- data/features/docs/cli/dry_run.feature +3 -0
- data/features/docs/cli/execute_with_tag_filter.feature +4 -4
- data/features/docs/cli/fail_fast.feature +2 -0
- data/features/docs/{gherkin/language_help.feature → cli/i18n.feature} +6 -6
- data/features/docs/cli/randomize.feature +2 -2
- data/features/docs/cli/retry_failing_tests.feature +28 -3
- data/features/docs/cli/run_scenarios_matching_name.feature +1 -0
- data/features/docs/cli/specifying_multiple_formatters.feature +3 -0
- data/features/docs/cli/strict_mode.feature +6 -0
- data/features/docs/defining_steps/nested_steps.feature +5 -1
- data/features/docs/defining_steps/nested_steps_i18n.feature +1 -0
- data/features/docs/defining_steps/nested_steps_with_second_arg.feature +2 -0
- data/features/docs/defining_steps/printing_messages.feature +1 -1
- data/features/docs/defining_steps/skip_scenario.feature +1 -0
- data/features/docs/defining_steps/snippets.feature +18 -18
- data/features/docs/events/gherkin_source_read_event.feature +43 -0
- data/features/docs/events/step_activated_event.feature +36 -0
- data/features/docs/events/step_definition_registered_event.feature +29 -0
- data/features/docs/events/test_case_finished_event.feature +35 -0
- data/features/docs/events/test_case_starting_event.feature +54 -0
- data/features/docs/events/test_run_finished_event.feature +40 -0
- data/features/docs/events/test_run_starting_event.feature +41 -0
- data/features/docs/events/test_step_finished_event.feature +47 -0
- data/features/docs/events/test_step_starting_event.feature +43 -0
- data/features/docs/exception_in_after_hook.feature +3 -2
- data/features/docs/exception_in_after_step_hook.feature +2 -0
- data/features/docs/exception_in_around_hook.feature +2 -0
- data/features/docs/exception_in_before_hook.feature +3 -1
- data/features/docs/extending_cucumber/custom_formatter.feature +21 -1
- data/features/docs/formatters/json_formatter.feature +4 -4
- data/features/docs/formatters/junit_formatter.feature +7 -6
- data/features/docs/formatters/pretty_formatter.feature +1 -0
- data/features/docs/formatters/progress_formatter.feature +1 -0
- data/features/docs/formatters/rerun_formatter.feature +2 -0
- data/features/docs/formatters/summary_formatter.feature +1 -0
- data/features/docs/formatters/usage_formatter.feature +3 -0
- data/features/docs/getting_started.feature +2 -1
- data/features/docs/gherkin/background.feature +5 -5
- data/features/docs/gherkin/doc_strings.feature +2 -0
- data/features/docs/gherkin/expand_option_for_outlines.feature +1 -0
- data/features/docs/gherkin/outlines.feature +4 -0
- data/features/docs/gherkin/unicode_table.feature +1 -0
- data/features/docs/gherkin/using_descriptions.feature +1 -0
- data/features/docs/gherkin/using_star_notation.feature +1 -1
- data/features/docs/post_configuration_hook.feature +1 -1
- data/features/docs/rake_task.feature +5 -0
- data/features/docs/raketask.feature +3 -1
- data/features/docs/work_in_progress.feature +5 -2
- data/features/docs/writing_support_code/after_step_hooks.feature +3 -1
- data/features/docs/writing_support_code/around_hooks.feature +6 -0
- data/features/docs/writing_support_code/before_hook.feature +1 -0
- data/features/docs/writing_support_code/hook_order.feature +3 -1
- data/features/docs/writing_support_code/parameter_types.feature +75 -0
- data/features/docs/writing_support_code/tagged_hooks.feature +1 -1
- data/features/lib/step_definitions/aruba_steps.rb +4 -10
- data/features/lib/step_definitions/cli_steps.rb +2 -2
- data/features/lib/step_definitions/cucumber_steps.rb +8 -12
- data/features/lib/step_definitions/iso-8859-1_steps.rb +2 -2
- data/features/lib/step_definitions/json_steps.rb +1 -1
- data/features/lib/step_definitions/junit_steps.rb +1 -1
- data/features/lib/step_definitions/language_steps.rb +2 -2
- data/features/lib/step_definitions/profile_steps.rb +6 -6
- data/features/lib/step_definitions/retry_steps.rb +3 -3
- data/features/lib/step_definitions/ruby_steps.rb +1 -1
- data/features/lib/support/env.rb +1 -1
- data/features/lib/support/fake_wire_server.rb +7 -2
- data/features/lib/support/feature_factory.rb +1 -1
- data/features/lib/support/normalise_output.rb +13 -12
- data/features/lib/support/parameter_types.rb +8 -0
- data/gem_tasks/contributors.rake +9 -6
- data/gem_tasks/environment.rake +1 -5
- data/gem_tasks/examples.rake +1 -1
- data/gem_tasks/fix_cr_lf.rake +1 -1
- data/gem_tasks/flog.rake +2 -2
- data/gem_tasks/rspec.rake +1 -1
- data/lib/autotest/cucumber_mixin.rb +15 -15
- data/lib/autotest/discover.rb +2 -2
- data/lib/cucumber/cli/configuration.rb +7 -13
- data/lib/cucumber/cli/main.rb +6 -6
- data/lib/cucumber/cli/options.rb +163 -126
- data/lib/cucumber/cli/profile_loader.rb +24 -20
- data/lib/cucumber/configuration.rb +12 -17
- data/lib/cucumber/constantize.rb +1 -1
- data/lib/cucumber/core_ext/string.rb +1 -1
- data/lib/cucumber/deprecate.rb +1 -1
- data/lib/cucumber/events.rb +11 -1
- data/lib/cucumber/events/gherkin_source_read.rb +17 -0
- data/lib/cucumber/events/{step_match.rb → step_activated.rb} +2 -2
- data/lib/cucumber/events/step_definition_registered.rb +1 -1
- data/lib/cucumber/events/test_case_finished.rb +18 -0
- data/lib/cucumber/events/test_case_starting.rb +15 -0
- data/lib/cucumber/events/test_run_starting.rb +16 -0
- data/lib/cucumber/events/test_step_finished.rb +20 -0
- data/lib/cucumber/events/test_step_starting.rb +17 -0
- data/lib/cucumber/filters.rb +1 -0
- data/lib/cucumber/filters/activate_steps.rb +1 -1
- data/lib/cucumber/filters/broadcast_test_run_starting_event.rb +27 -0
- data/lib/cucumber/filters/retry.rb +1 -1
- data/lib/cucumber/filters/tag_limits.rb +3 -3
- data/lib/cucumber/filters/tag_limits/verifier.rb +1 -1
- data/lib/cucumber/formatter/ansicolor.rb +8 -11
- data/lib/cucumber/formatter/backtrace_filter.rb +19 -7
- data/lib/cucumber/formatter/console.rb +16 -19
- data/lib/cucumber/formatter/console_counts.rb +8 -21
- data/lib/cucumber/formatter/console_issues.rb +30 -9
- data/lib/cucumber/formatter/duration.rb +1 -1
- data/lib/cucumber/formatter/fail_fast.rb +1 -1
- data/lib/cucumber/formatter/html.rb +168 -242
- data/lib/cucumber/formatter/html_builder.rb +110 -0
- data/lib/cucumber/formatter/inline-js.js +30 -0
- data/lib/cucumber/formatter/interceptor.rb +2 -2
- data/lib/cucumber/formatter/json.rb +12 -12
- data/lib/cucumber/formatter/junit.rb +11 -11
- data/lib/cucumber/formatter/legacy_api/adapter.rb +27 -27
- data/lib/cucumber/formatter/legacy_api/ast.rb +16 -20
- data/lib/cucumber/formatter/legacy_api/results.rb +6 -8
- data/lib/cucumber/formatter/pretty.rb +17 -17
- data/lib/cucumber/formatter/progress.rb +11 -12
- data/lib/cucumber/formatter/rerun.rb +1 -1
- data/lib/cucumber/formatter/steps.rb +1 -1
- data/lib/cucumber/formatter/unicode.rb +1 -1
- data/lib/cucumber/formatter/usage.rb +12 -12
- data/lib/cucumber/gherkin/formatter/ansi_escapes.rb +1 -1
- data/lib/cucumber/gherkin/formatter/escaping.rb +1 -1
- data/lib/cucumber/{rb_support/rb_dsl.rb → glue/dsl.rb} +44 -17
- data/lib/cucumber/glue/hook.rb +43 -0
- data/lib/cucumber/glue/invoke_in_world.rb +70 -0
- data/lib/cucumber/glue/proto_world.rb +225 -0
- data/lib/cucumber/{rb_support/rb_language.rb → glue/registry_and_more.rb} +45 -86
- data/lib/cucumber/{rb_support → glue}/snippet.rb +62 -25
- data/lib/cucumber/glue/step_definition.rb +143 -0
- data/lib/cucumber/glue/world_factory.rb +23 -0
- data/lib/cucumber/hooks.rb +4 -4
- data/lib/cucumber/multiline_argument.rb +2 -2
- data/lib/cucumber/multiline_argument/data_table.rb +40 -178
- data/lib/cucumber/multiline_argument/data_table/diff_matrices.rb +158 -0
- data/lib/cucumber/platform.rb +3 -5
- data/lib/cucumber/rake/task.rb +11 -11
- data/lib/cucumber/rspec/disable_option_parser.rb +1 -1
- data/lib/cucumber/rspec/doubles.rb +1 -1
- data/lib/cucumber/running_test_case.rb +2 -2
- data/lib/cucumber/runtime.rb +46 -34
- data/lib/cucumber/runtime/after_hooks.rb +1 -1
- data/lib/cucumber/runtime/for_programming_languages.rb +1 -36
- data/lib/cucumber/runtime/support_code.rb +19 -15
- data/lib/cucumber/runtime/user_interface.rb +4 -11
- data/lib/cucumber/step_argument.rb +0 -2
- data/lib/cucumber/step_definition_light.rb +1 -0
- data/lib/cucumber/step_match.rb +16 -15
- data/lib/cucumber/step_match_search.rb +2 -3
- data/lib/cucumber/term/ansicolor.rb +1 -1
- data/lib/cucumber/version +1 -1
- data/lib/simplecov_setup.rb +1 -1
- data/scripts/invite-collaborator +40 -0
- data/scripts/update-history +83 -0
- data/spec/cucumber/cli/configuration_spec.rb +95 -97
- data/spec/cucumber/cli/main_spec.rb +7 -7
- data/spec/cucumber/cli/options_spec.rb +112 -78
- data/spec/cucumber/cli/profile_loader_spec.rb +24 -5
- data/spec/cucumber/cli/rerun_spec.rb +20 -20
- data/spec/cucumber/configuration_spec.rb +47 -47
- data/spec/cucumber/constantize_spec.rb +2 -2
- data/spec/cucumber/events_spec.rb +9 -0
- data/spec/cucumber/file_specs_spec.rb +25 -25
- data/spec/cucumber/filters/activate_steps_spec.rb +16 -16
- data/spec/cucumber/filters/gated_receiver_spec.rb +6 -6
- data/spec/cucumber/filters/retry_spec.rb +22 -9
- data/spec/cucumber/filters/tag_limits/test_case_index_spec.rb +11 -11
- data/spec/cucumber/filters/tag_limits/verifier_spec.rb +14 -14
- data/spec/cucumber/filters/tag_limits_spec.rb +8 -8
- data/spec/cucumber/formatter/ansicolor_spec.rb +9 -9
- data/spec/cucumber/formatter/backtrace_filter_spec.rb +32 -0
- data/spec/cucumber/formatter/console_counts_spec.rb +1 -1
- data/spec/cucumber/formatter/duration_spec.rb +3 -3
- data/spec/cucumber/formatter/fail_fast_spec.rb +21 -21
- data/spec/cucumber/formatter/html_spec.rb +58 -58
- data/spec/cucumber/formatter/json_spec.rb +44 -46
- data/spec/cucumber/formatter/junit_spec.rb +43 -45
- data/spec/cucumber/formatter/legacy_api/adapter_spec.rb +43 -43
- data/spec/cucumber/formatter/pretty_spec.rb +107 -107
- data/spec/cucumber/formatter/progress_spec.rb +20 -20
- data/spec/cucumber/formatter/rerun_spec.rb +1 -1
- data/spec/cucumber/formatter/spec_helper.rb +6 -5
- data/spec/cucumber/{rb_support/rb_world_spec.rb → glue/proto_world_spec.rb} +20 -5
- data/spec/cucumber/glue/registry_and_more_spec.rb +213 -0
- data/spec/cucumber/{rb_support → glue}/snippet_spec.rb +61 -25
- data/spec/cucumber/glue/step_definition_spec.rb +207 -0
- data/spec/cucumber/hooks_spec.rb +3 -3
- data/spec/cucumber/multiline_argument/data_table_spec.rb +177 -133
- data/spec/cucumber/project_initializer_spec.rb +10 -10
- data/spec/cucumber/rake/forked_spec.rb +10 -10
- data/spec/cucumber/rake/task_spec.rb +20 -20
- data/spec/cucumber/running_test_case_spec.rb +35 -35
- data/spec/cucumber/runtime/for_programming_languages_spec.rb +1 -30
- data/spec/cucumber/runtime_spec.rb +2 -2
- data/spec/cucumber/step_argument_spec.rb +5 -5
- data/spec/cucumber/step_match_search_spec.rb +31 -41
- data/spec/cucumber/step_match_spec.rb +33 -33
- data/spec/cucumber/world/pending_spec.rb +10 -10
- metadata +117 -47
- data/features/docs/formatters/debug_formatter.feature +0 -47
- data/features/docs/writing_support_code/transforms.feature +0 -98
- data/features/lib/step_definitions/wire_steps.rb +0 -59
- data/gem_tasks/cucumber.rake +0 -26
- data/lib/cucumber/core_ext/instance_exec.rb +0 -71
- data/lib/cucumber/formatter/debug.rb +0 -36
- data/lib/cucumber/rb_support/rb_hook.rb +0 -20
- data/lib/cucumber/rb_support/rb_step_definition.rb +0 -132
- data/lib/cucumber/rb_support/rb_transform.rb +0 -60
- data/lib/cucumber/rb_support/rb_world.rb +0 -171
- data/spec/cucumber/core_ext/instance_exec_spec.rb +0 -5
- data/spec/cucumber/formatter/debug_spec.rb +0 -65
- data/spec/cucumber/rb_support/rb_language_spec.rb +0 -321
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +0 -200
- data/spec/cucumber/rb_support/rb_transform_spec.rb +0 -47
@@ -10,32 +10,32 @@ module Cucumber
|
|
10
10
|
extend SpecHelperDsl
|
11
11
|
include SpecHelper
|
12
12
|
|
13
|
-
context
|
13
|
+
context 'With no options' do
|
14
14
|
before(:each) do
|
15
15
|
Cucumber::Term::ANSIColor.coloring = false
|
16
16
|
@out = StringIO.new
|
17
17
|
@formatter = Pretty.new(runtime, @out, {})
|
18
18
|
end
|
19
19
|
|
20
|
-
describe
|
20
|
+
describe 'given a single feature' do
|
21
21
|
before(:each) do
|
22
22
|
run_defined_feature
|
23
23
|
end
|
24
24
|
|
25
|
-
describe
|
25
|
+
describe 'with a scenario with no steps' do
|
26
26
|
define_feature <<-FEATURE
|
27
27
|
Feature: Banana party
|
28
28
|
|
29
29
|
Scenario: Monkey eats banana
|
30
30
|
FEATURE
|
31
31
|
|
32
|
-
it
|
33
|
-
expect(@out.string).to include
|
32
|
+
it 'outputs the scenario name' do
|
33
|
+
expect(@out.string).to include 'Scenario: Monkey eats banana'
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
|
38
|
-
describe
|
38
|
+
describe 'with a scenario' do
|
39
39
|
define_feature <<-FEATURE
|
40
40
|
Feature: Banana party
|
41
41
|
|
@@ -43,16 +43,16 @@ module Cucumber
|
|
43
43
|
Given there are bananas
|
44
44
|
FEATURE
|
45
45
|
|
46
|
-
it
|
47
|
-
expect(@out.string).to include
|
46
|
+
it 'outputs the scenario name' do
|
47
|
+
expect(@out.string).to include 'Scenario: Monkey eats banana'
|
48
48
|
end
|
49
49
|
|
50
|
-
it
|
51
|
-
expect(@out.string).to include
|
50
|
+
it 'outputs the step' do
|
51
|
+
expect(@out.string).to include 'Given there are bananas'
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
describe
|
55
|
+
describe 'with a background' do
|
56
56
|
define_feature <<-FEATURE
|
57
57
|
Feature: Banana party
|
58
58
|
|
@@ -63,20 +63,20 @@ Feature: Banana party
|
|
63
63
|
Given there are bananas
|
64
64
|
FEATURE
|
65
65
|
|
66
|
-
it
|
66
|
+
it 'outputs the gherkin' do
|
67
67
|
expect(@out.string).to include(self.class.feature_content)
|
68
68
|
end
|
69
69
|
|
70
|
-
it
|
71
|
-
expect(@out.string).to include
|
70
|
+
it 'outputs the scenario name' do
|
71
|
+
expect(@out.string).to include 'Scenario: Monkey eats banana'
|
72
72
|
end
|
73
73
|
|
74
|
-
it
|
75
|
-
expect(@out.string).to include
|
74
|
+
it 'outputs the step' do
|
75
|
+
expect(@out.string).to include 'Given there are bananas'
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
describe
|
79
|
+
describe 'with a scenario outline' do
|
80
80
|
define_feature <<-FEATURE
|
81
81
|
Feature: Fud Pyramid
|
82
82
|
|
@@ -93,7 +93,7 @@ Feature: Banana party
|
|
93
93
|
| carrots |
|
94
94
|
FEATURE
|
95
95
|
|
96
|
-
it
|
96
|
+
it 'outputs the scenario outline' do
|
97
97
|
lines = <<-OUTPUT
|
98
98
|
Examples: Fruit
|
99
99
|
| Things |
|
@@ -109,12 +109,12 @@ Feature: Banana party
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
-
it
|
113
|
-
expect(@out.string).to include
|
112
|
+
it 'has 4 undefined scenarios' do
|
113
|
+
expect(@out.string).to include '4 scenarios (4 undefined)'
|
114
114
|
end
|
115
115
|
|
116
|
-
it
|
117
|
-
expect(@out.string).to include
|
116
|
+
it 'has 4 undefined steps' do
|
117
|
+
expect(@out.string).to include '4 steps (4 undefined)'
|
118
118
|
end
|
119
119
|
|
120
120
|
context 'when the examples table header is wider than the rows' do
|
@@ -129,7 +129,7 @@ Feature: Banana party
|
|
129
129
|
| Hominidae |
|
130
130
|
FEATURE
|
131
131
|
|
132
|
-
it
|
132
|
+
it 'outputs the scenario outline' do
|
133
133
|
lines = <<-OUTPUT
|
134
134
|
Examples:
|
135
135
|
| Types of monkey |
|
@@ -143,7 +143,7 @@ Feature: Banana party
|
|
143
143
|
end
|
144
144
|
|
145
145
|
# To ensure https://rspec.lighthouseapp.com/projects/16211/tickets/475 remains fixed.
|
146
|
-
describe
|
146
|
+
describe 'with a scenario outline with a pystring' do
|
147
147
|
define_feature <<-FEATURE
|
148
148
|
Feature:
|
149
149
|
Scenario Outline: Monkey eats a balanced diet
|
@@ -157,7 +157,7 @@ Feature: Banana party
|
|
157
157
|
| apples |
|
158
158
|
FEATURE
|
159
159
|
|
160
|
-
it
|
160
|
+
it 'outputs the scenario outline' do
|
161
161
|
lines = <<-OUTPUT
|
162
162
|
Given a multiline string:
|
163
163
|
"""
|
@@ -174,7 +174,7 @@ Feature: Banana party
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
-
describe
|
177
|
+
describe 'with a step with a py string' do
|
178
178
|
define_feature <<-FEATURE
|
179
179
|
Feature: Traveling circus
|
180
180
|
|
@@ -185,7 +185,7 @@ Feature: Banana party
|
|
185
185
|
"""
|
186
186
|
FEATURE
|
187
187
|
|
188
|
-
it
|
188
|
+
it 'displays the pystring nested' do
|
189
189
|
expect(@out.string).to include <<OUTPUT
|
190
190
|
"""
|
191
191
|
foo
|
@@ -194,7 +194,7 @@ OUTPUT
|
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
197
|
-
describe
|
197
|
+
describe 'with a multiline step arg' do
|
198
198
|
define_feature <<-FEATURE
|
199
199
|
Feature: Traveling circus
|
200
200
|
|
@@ -205,7 +205,7 @@ OUTPUT
|
|
205
205
|
| bar |
|
206
206
|
FEATURE
|
207
207
|
|
208
|
-
it
|
208
|
+
it 'displays the multiline string' do
|
209
209
|
expect(@out.string).to include <<OUTPUT
|
210
210
|
Given there are monkeys:
|
211
211
|
| name |
|
@@ -215,7 +215,7 @@ OUTPUT
|
|
215
215
|
end
|
216
216
|
end
|
217
217
|
|
218
|
-
describe
|
218
|
+
describe 'with a table in the background and the scenario' do
|
219
219
|
define_feature <<-FEATURE
|
220
220
|
Feature: accountant monkey
|
221
221
|
|
@@ -229,7 +229,7 @@ OUTPUT
|
|
229
229
|
| g | h |
|
230
230
|
FEATURE
|
231
231
|
|
232
|
-
it
|
232
|
+
it 'displays the table for the background' do
|
233
233
|
expect(@out.string).to include <<OUTPUT
|
234
234
|
Given table:
|
235
235
|
| a | b |
|
@@ -237,7 +237,7 @@ OUTPUT
|
|
237
237
|
OUTPUT
|
238
238
|
end
|
239
239
|
|
240
|
-
it
|
240
|
+
it 'displays the table for the scenario' do
|
241
241
|
expect(@out.string).to include <<OUTPUT
|
242
242
|
Given another table:
|
243
243
|
| e | f |
|
@@ -246,7 +246,7 @@ OUTPUT
|
|
246
246
|
end
|
247
247
|
end
|
248
248
|
|
249
|
-
describe
|
249
|
+
describe 'with a py string in the background and the scenario' do
|
250
250
|
define_feature <<-FEATURE
|
251
251
|
Feature: py strings
|
252
252
|
|
@@ -262,7 +262,7 @@ OUTPUT
|
|
262
262
|
"""
|
263
263
|
FEATURE
|
264
264
|
|
265
|
-
it
|
265
|
+
it 'displays the background py string' do
|
266
266
|
expect(@out.string).to include <<OUTPUT
|
267
267
|
Given stuff:
|
268
268
|
"""
|
@@ -271,7 +271,7 @@ OUTPUT
|
|
271
271
|
OUTPUT
|
272
272
|
end
|
273
273
|
|
274
|
-
it
|
274
|
+
it 'displays the scenario py string' do
|
275
275
|
expect(@out.string).to include <<OUTPUT
|
276
276
|
Given more stuff:
|
277
277
|
"""
|
@@ -281,7 +281,7 @@ OUTPUT
|
|
281
281
|
end
|
282
282
|
end
|
283
283
|
|
284
|
-
describe
|
284
|
+
describe 'with output from hooks' do
|
285
285
|
define_feature <<-FEATURE
|
286
286
|
Feature:
|
287
287
|
Scenario:
|
@@ -295,18 +295,18 @@ OUTPUT
|
|
295
295
|
|
296
296
|
define_steps do
|
297
297
|
Before do
|
298
|
-
puts
|
298
|
+
puts 'Before hook'
|
299
299
|
end
|
300
300
|
AfterStep do
|
301
|
-
puts
|
301
|
+
puts 'AfterStep hook'
|
302
302
|
end
|
303
303
|
After do
|
304
|
-
puts
|
304
|
+
puts 'After hook'
|
305
305
|
end
|
306
|
-
Given(
|
306
|
+
Given('this step passes') {}
|
307
307
|
end
|
308
308
|
|
309
|
-
it
|
309
|
+
it 'displays hook output appropriately ' do
|
310
310
|
expect( @out.string ).to include <<OUTPUT
|
311
311
|
Feature:
|
312
312
|
|
@@ -329,7 +329,7 @@ OUTPUT
|
|
329
329
|
end
|
330
330
|
end
|
331
331
|
|
332
|
-
describe
|
332
|
+
describe 'with background and output from hooks' do
|
333
333
|
define_feature <<-FEATURE
|
334
334
|
Feature:
|
335
335
|
Background:
|
@@ -340,18 +340,18 @@ OUTPUT
|
|
340
340
|
|
341
341
|
define_steps do
|
342
342
|
Before do
|
343
|
-
puts
|
343
|
+
puts 'Before hook'
|
344
344
|
end
|
345
345
|
AfterStep do
|
346
|
-
puts
|
346
|
+
puts 'AfterStep hook'
|
347
347
|
end
|
348
348
|
After do
|
349
|
-
puts
|
349
|
+
puts 'After hook'
|
350
350
|
end
|
351
|
-
Given(
|
351
|
+
Given('this step passes') {}
|
352
352
|
end
|
353
353
|
|
354
|
-
it
|
354
|
+
it 'displays hook output appropriately ' do
|
355
355
|
expect( @out.string ).to include <<OUTPUT
|
356
356
|
Feature:
|
357
357
|
|
@@ -371,7 +371,7 @@ OUTPUT
|
|
371
371
|
end
|
372
372
|
end
|
373
373
|
|
374
|
-
describe
|
374
|
+
describe 'with tags on all levels' do
|
375
375
|
define_feature <<-FEATURE
|
376
376
|
@tag1
|
377
377
|
Feature:
|
@@ -388,7 +388,7 @@ OUTPUT
|
|
388
388
|
FEATURE
|
389
389
|
|
390
390
|
|
391
|
-
it
|
391
|
+
it 'includes the tags in the output ' do
|
392
392
|
expect( @out.string ).to include <<OUTPUT
|
393
393
|
@tag1
|
394
394
|
Feature:
|
@@ -409,7 +409,7 @@ OUTPUT
|
|
409
409
|
end
|
410
410
|
end
|
411
411
|
|
412
|
-
describe
|
412
|
+
describe 'with comments on all levels' do
|
413
413
|
define_feature <<-FEATURE
|
414
414
|
#comment1
|
415
415
|
Feature:
|
@@ -436,7 +436,7 @@ OUTPUT
|
|
436
436
|
FEATURE
|
437
437
|
|
438
438
|
|
439
|
-
it
|
439
|
+
it 'includes the all comments except for data table rows in the output ' do
|
440
440
|
expect( @out.string ).to include <<OUTPUT
|
441
441
|
#comment1
|
442
442
|
Feature:
|
@@ -469,19 +469,19 @@ OUTPUT
|
|
469
469
|
end
|
470
470
|
end
|
471
471
|
|
472
|
-
context
|
472
|
+
context 'With --no-multiline passed as an option' do
|
473
473
|
before(:each) do
|
474
474
|
Cucumber::Term::ANSIColor.coloring = false
|
475
475
|
@out = StringIO.new
|
476
476
|
@formatter = Pretty.new(runtime, @out, {:no_multiline => true})
|
477
477
|
end
|
478
478
|
|
479
|
-
describe
|
479
|
+
describe 'given a single feature' do
|
480
480
|
before(:each) do
|
481
481
|
run_defined_feature
|
482
482
|
end
|
483
483
|
|
484
|
-
describe
|
484
|
+
describe 'with a scenario' do
|
485
485
|
define_feature <<-FEATURE
|
486
486
|
Feature: Banana party
|
487
487
|
|
@@ -489,16 +489,16 @@ OUTPUT
|
|
489
489
|
Given there are bananas
|
490
490
|
FEATURE
|
491
491
|
|
492
|
-
it
|
493
|
-
expect(@out.string).to include
|
492
|
+
it 'outputs the scenario name' do
|
493
|
+
expect(@out.string).to include 'Scenario: Monkey eats banana'
|
494
494
|
end
|
495
495
|
|
496
|
-
it
|
497
|
-
expect(@out.string).to include
|
496
|
+
it 'outputs the step' do
|
497
|
+
expect(@out.string).to include 'Given there are bananas'
|
498
498
|
end
|
499
499
|
end
|
500
500
|
|
501
|
-
describe
|
501
|
+
describe 'with a scenario outline' do
|
502
502
|
define_feature <<-FEATURE
|
503
503
|
Feature: Fud Pyramid
|
504
504
|
|
@@ -515,7 +515,7 @@ OUTPUT
|
|
515
515
|
| carrots |
|
516
516
|
FEATURE
|
517
517
|
|
518
|
-
it
|
518
|
+
it 'outputs the scenario outline' do
|
519
519
|
lines = <<-OUTPUT
|
520
520
|
Examples: Fruit
|
521
521
|
| Things |
|
@@ -531,16 +531,16 @@ OUTPUT
|
|
531
531
|
end
|
532
532
|
end
|
533
533
|
|
534
|
-
it
|
535
|
-
expect(@out.string).to include
|
534
|
+
it 'has 4 undefined scenarios' do
|
535
|
+
expect(@out.string).to include '4 scenarios (4 undefined)'
|
536
536
|
end
|
537
537
|
|
538
|
-
it
|
539
|
-
expect(@out.string).to include
|
538
|
+
it 'has 4 undefined steps' do
|
539
|
+
expect(@out.string).to include '4 steps (4 undefined)'
|
540
540
|
end
|
541
541
|
end
|
542
542
|
|
543
|
-
describe
|
543
|
+
describe 'with a step with a py string' do
|
544
544
|
define_feature <<-FEATURE
|
545
545
|
Feature: Traveling circus
|
546
546
|
|
@@ -551,7 +551,7 @@ OUTPUT
|
|
551
551
|
"""
|
552
552
|
FEATURE
|
553
553
|
|
554
|
-
it
|
554
|
+
it 'does not display the pystring' do
|
555
555
|
expect(@out.string).not_to include <<OUTPUT
|
556
556
|
"""
|
557
557
|
foo
|
@@ -560,7 +560,7 @@ OUTPUT
|
|
560
560
|
end
|
561
561
|
end
|
562
562
|
|
563
|
-
describe
|
563
|
+
describe 'with a multiline step arg' do
|
564
564
|
define_feature <<-FEATURE
|
565
565
|
Feature: Traveling circus
|
566
566
|
|
@@ -571,7 +571,7 @@ OUTPUT
|
|
571
571
|
| bar |
|
572
572
|
FEATURE
|
573
573
|
|
574
|
-
it
|
574
|
+
it 'does not display the multiline string' do
|
575
575
|
expect(@out.string).not_to include <<OUTPUT
|
576
576
|
| name |
|
577
577
|
| foo |
|
@@ -580,7 +580,7 @@ OUTPUT
|
|
580
580
|
end
|
581
581
|
end
|
582
582
|
|
583
|
-
describe
|
583
|
+
describe 'with a table in the background and the scenario' do
|
584
584
|
define_feature <<-FEATURE
|
585
585
|
Feature: accountant monkey
|
586
586
|
|
@@ -594,13 +594,13 @@ OUTPUT
|
|
594
594
|
| g | h |
|
595
595
|
FEATURE
|
596
596
|
|
597
|
-
it
|
597
|
+
it 'does not display the table for the background' do
|
598
598
|
expect(@out.string).not_to include <<OUTPUT
|
599
599
|
| a | b |
|
600
600
|
| c | d |
|
601
601
|
OUTPUT
|
602
602
|
end
|
603
|
-
it
|
603
|
+
it 'does not display the table for the scenario' do
|
604
604
|
expect(@out.string).not_to include <<OUTPUT
|
605
605
|
| e | f |
|
606
606
|
| g | h |
|
@@ -608,7 +608,7 @@ OUTPUT
|
|
608
608
|
end
|
609
609
|
end
|
610
610
|
|
611
|
-
describe
|
611
|
+
describe 'with a py string in the background and the scenario' do
|
612
612
|
define_feature <<-FEATURE
|
613
613
|
Feature: py strings
|
614
614
|
|
@@ -624,14 +624,14 @@ OUTPUT
|
|
624
624
|
"""
|
625
625
|
FEATURE
|
626
626
|
|
627
|
-
it
|
627
|
+
it 'does not display the background py string' do
|
628
628
|
expect(@out.string).not_to include <<OUTPUT
|
629
629
|
"""
|
630
630
|
foo
|
631
631
|
"""
|
632
632
|
OUTPUT
|
633
633
|
end
|
634
|
-
it
|
634
|
+
it 'does not display the scenario py string' do
|
635
635
|
expect(@out.string).not_to include <<OUTPUT
|
636
636
|
"""
|
637
637
|
bar
|
@@ -642,7 +642,7 @@ OUTPUT
|
|
642
642
|
end
|
643
643
|
end
|
644
644
|
|
645
|
-
context
|
645
|
+
context 'In --expand mode' do
|
646
646
|
let(:options) { { expand: true } }
|
647
647
|
before(:each) do
|
648
648
|
Cucumber::Term::ANSIColor.coloring = false
|
@@ -650,12 +650,12 @@ OUTPUT
|
|
650
650
|
@formatter = Pretty.new(runtime, @out, {})
|
651
651
|
end
|
652
652
|
|
653
|
-
describe
|
653
|
+
describe 'given a single feature' do
|
654
654
|
before(:each) do
|
655
655
|
run_defined_feature
|
656
656
|
end
|
657
657
|
|
658
|
-
describe
|
658
|
+
describe 'with a scenario outline' do
|
659
659
|
define_feature <<-FEATURE
|
660
660
|
Feature: Fud Pyramid
|
661
661
|
|
@@ -672,7 +672,7 @@ OUTPUT
|
|
672
672
|
| carrots |
|
673
673
|
FEATURE
|
674
674
|
|
675
|
-
it
|
675
|
+
it 'outputs the instantiated scenarios' do
|
676
676
|
lines = <<-OUTPUT
|
677
677
|
Examples: Fruit
|
678
678
|
Scenario: | apples |
|
@@ -691,7 +691,7 @@ OUTPUT
|
|
691
691
|
end
|
692
692
|
end
|
693
693
|
|
694
|
-
describe
|
694
|
+
describe 'with a scenario outline in en-lol' do
|
695
695
|
define_feature <<-FEATURE
|
696
696
|
# language: en-lol
|
697
697
|
OH HAI: STUFFING
|
@@ -707,7 +707,7 @@ OUTPUT
|
|
707
707
|
| 3 | 2 | 1 |
|
708
708
|
FEATURE
|
709
709
|
|
710
|
-
it
|
710
|
+
it 'outputs localized text' do
|
711
711
|
lines = <<-OUTPUT
|
712
712
|
OH HAI: STUFFING
|
713
713
|
|
@@ -731,7 +731,7 @@ OUTPUT
|
|
731
731
|
end
|
732
732
|
end
|
733
733
|
|
734
|
-
context
|
734
|
+
context 'In --expand mode with --source as an option' do
|
735
735
|
let(:options) { { expand: true } }
|
736
736
|
before(:each) do
|
737
737
|
Cucumber::Term::ANSIColor.coloring = false
|
@@ -739,12 +739,12 @@ OUTPUT
|
|
739
739
|
@formatter = Pretty.new(runtime, @out, {:source => true})
|
740
740
|
end
|
741
741
|
|
742
|
-
describe
|
742
|
+
describe 'given a single feature' do
|
743
743
|
before(:each) do
|
744
744
|
run_defined_feature
|
745
745
|
end
|
746
746
|
|
747
|
-
describe
|
747
|
+
describe 'with a scenario outline' do
|
748
748
|
define_feature <<-FEATURE
|
749
749
|
Feature: Fud Pyramid
|
750
750
|
|
@@ -761,7 +761,7 @@ OUTPUT
|
|
761
761
|
| carrots |
|
762
762
|
FEATURE
|
763
763
|
|
764
|
-
it
|
764
|
+
it 'includes the source in the output' do
|
765
765
|
lines = <<-OUTPUT
|
766
766
|
Scenario Outline: Monkey eats a balanced diet # spec.feature:3
|
767
767
|
Given there are <Things> # spec.feature:4
|
@@ -781,7 +781,7 @@ OUTPUT
|
|
781
781
|
end
|
782
782
|
end
|
783
783
|
|
784
|
-
context
|
784
|
+
context 'With very wide cells' do
|
785
785
|
define_feature <<-FEATURE
|
786
786
|
Feature: Monkey Business
|
787
787
|
|
@@ -793,7 +793,7 @@ OUTPUT
|
|
793
793
|
| Hominidae | Very long cell content |
|
794
794
|
FEATURE
|
795
795
|
|
796
|
-
it
|
796
|
+
it 'the scenario line controls the source indentation' do
|
797
797
|
lines = <<-OUTPUT
|
798
798
|
Examples:
|
799
799
|
Scenario: | Hominidae | Very long cell content | # spec.feature:8
|
@@ -809,7 +809,7 @@ OUTPUT
|
|
809
809
|
end
|
810
810
|
end
|
811
811
|
|
812
|
-
context
|
812
|
+
context 'snippets contain relevant keyword replacements' do
|
813
813
|
|
814
814
|
before(:each) do
|
815
815
|
Cucumber::Term::ANSIColor.coloring = false
|
@@ -818,7 +818,7 @@ OUTPUT
|
|
818
818
|
run_defined_feature
|
819
819
|
end
|
820
820
|
|
821
|
-
describe
|
821
|
+
describe 'With a scenario that has undefined steps' do
|
822
822
|
define_feature <<-FEATURE
|
823
823
|
Feature: Banana party
|
824
824
|
|
@@ -832,12 +832,12 @@ OUTPUT
|
|
832
832
|
FEATURE
|
833
833
|
|
834
834
|
it "containes snippets with 'And' or 'But' replaced by previous step name" do
|
835
|
-
expect(@out.string).to include(
|
836
|
-
expect(@out.string).to include(
|
837
|
-
expect(@out.string).to include(
|
838
|
-
expect(@out.string).to include(
|
839
|
-
expect(@out.string).to include(
|
840
|
-
expect(@out.string).to include(
|
835
|
+
expect(@out.string).to include('Given("there are bananas and apples")')
|
836
|
+
expect(@out.string).to include('Given("other monkeys are around")')
|
837
|
+
expect(@out.string).to include('When("one monkey eats a banana")')
|
838
|
+
expect(@out.string).to include('When("the other monkeys eat all the apples")')
|
839
|
+
expect(@out.string).to include('Then("bananas remain")')
|
840
|
+
expect(@out.string).to include('Then("there are no apples left")')
|
841
841
|
end
|
842
842
|
end
|
843
843
|
|
@@ -854,12 +854,12 @@ OUTPUT
|
|
854
854
|
* there are no apples left
|
855
855
|
FEATURE
|
856
856
|
it "replaces the first step with 'Given'" do
|
857
|
-
expect(@out.string).to include(
|
857
|
+
expect(@out.string).to include('Given("there are bananas and apples")')
|
858
858
|
end
|
859
859
|
it "uses actual keywords as the 'previous' keyword for future replacements" do
|
860
|
-
expect(@out.string).to include(
|
861
|
-
expect(@out.string).to include(
|
862
|
-
expect(@out.string).to include(
|
860
|
+
expect(@out.string).to include('Given("other monkeys are around")')
|
861
|
+
expect(@out.string).to include('When("the other monkeys eat all the apples")')
|
862
|
+
expect(@out.string).to include('Then("there are no apples left")')
|
863
863
|
end
|
864
864
|
end
|
865
865
|
|
@@ -873,10 +873,10 @@ OUTPUT
|
|
873
873
|
And this step is undefined
|
874
874
|
FEATURE
|
875
875
|
define_steps do
|
876
|
-
Given(
|
876
|
+
Given('this step passes') {}
|
877
877
|
end
|
878
|
-
it
|
879
|
-
expect(@out.string).to include(
|
878
|
+
it 'uses actual keyword of the previous passing step for the undefined step' do
|
879
|
+
expect(@out.string).to include('Then("this step is undefined")')
|
880
880
|
end
|
881
881
|
end
|
882
882
|
|
@@ -893,15 +893,15 @@ OUTPUT
|
|
893
893
|
Then this step passes
|
894
894
|
FEATURE
|
895
895
|
define_steps do
|
896
|
-
Given(
|
896
|
+
Given('this step passes') {}
|
897
897
|
end
|
898
898
|
it "uses 'Given' as actual keyword the step in each scenario" do
|
899
|
-
expect(@out.string).to include(
|
900
|
-
expect(@out.string).to include(
|
899
|
+
expect(@out.string).to include('Given("this step is undefined")')
|
900
|
+
expect(@out.string).to include('Given("this step is also undefined")')
|
901
901
|
end
|
902
902
|
end
|
903
903
|
|
904
|
-
describe
|
904
|
+
describe 'with a scenario in en-lol' do
|
905
905
|
define_feature <<-FEATURE
|
906
906
|
# language: en-lol
|
907
907
|
OH HAI: STUFFING
|
@@ -910,8 +910,8 @@ OUTPUT
|
|
910
910
|
I CAN HAZ IN TEH BEGINNIN CUCUMBRZ
|
911
911
|
AN I EAT CUCUMBRZ
|
912
912
|
FEATURE
|
913
|
-
it
|
914
|
-
expect(@out.string).to include(
|
913
|
+
it 'uses actual keyword of the previous passing step for the undefined step' do
|
914
|
+
expect(@out.string).to include('ICANHAZ("I EAT CUCUMBRZ")')
|
915
915
|
end
|
916
916
|
end
|
917
917
|
end
|