cucumber 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/History.txt +25 -0
  2. data/Rakefile +4 -3
  3. data/VERSION.yml +3 -2
  4. data/cucumber.gemspec +21 -16
  5. data/cucumber.yml +5 -3
  6. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
  7. data/examples/i18n/bg/features/support/env.rb +1 -2
  8. data/examples/i18n/cat/features/step_definitons/calculator_steps.rb +1 -1
  9. data/examples/i18n/da/features/step_definitons/lommeregner_steps.rb +1 -1
  10. data/examples/i18n/de/features/step_definitons/calculator_steps.rb +1 -1
  11. data/examples/i18n/en-lol/features/support/env.rb +0 -1
  12. data/examples/i18n/en/features/step_definitons/calculator_steps.rb +2 -2
  13. data/examples/i18n/es/features/step_definitons/calculador_steps.rb +2 -2
  14. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
  15. data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
  16. data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +0 -6
  17. data/examples/i18n/fr/features/support/env.rb +5 -0
  18. data/examples/i18n/he/features/step_definitons/calculator_steps.rb +1 -1
  19. data/examples/i18n/he/lib/calculator.rb +1 -0
  20. data/examples/i18n/hu/features/step_definitons/calculator_steps.rb +1 -1
  21. data/examples/i18n/id/features/step_definitons/calculator_steps.rb +1 -1
  22. data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
  23. data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +0 -5
  24. data/examples/i18n/ja/features/support/env.rb +5 -0
  25. data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
  26. data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +1 -1
  27. data/examples/i18n/lv/features/step_definitons/calculator_steps.rb +1 -1
  28. data/examples/i18n/no/features/support/env.rb +1 -2
  29. data/examples/i18n/pl/features/step_definitons/calculator_steps.rb +1 -1
  30. data/examples/i18n/pl/features/support/env.rb +1 -2
  31. data/examples/i18n/pt/features/support/env.rb +1 -2
  32. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
  33. data/examples/i18n/ru/features/support/env.rb +1 -2
  34. data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
  35. data/examples/i18n/sk/features/step_definitons/calculator_steps.rb +1 -1
  36. data/examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb +3 -3
  37. data/examples/i18n/sr/features/step_definitons/calculator_steps.rb +1 -5
  38. data/examples/i18n/sr/features/support/env.rb +5 -0
  39. data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +1 -1
  40. data/examples/i18n/uz/features/support/env.rb +1 -2
  41. data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +1 -1
  42. data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +1 -1
  43. data/examples/self_test/features/step_definitions/sample_steps.rb +2 -0
  44. data/examples/watir/features/support/screenshots.rb +20 -17
  45. data/features/call_many_steps.feature +2 -0
  46. data/features/cucumber_cli.feature +7 -4
  47. data/features/html_formatter.feature +1 -0
  48. data/features/html_formatter/a.html +2 -2
  49. data/features/language_help.feature +1 -0
  50. data/features/step_definitions/cucumber_steps.rb +3 -3
  51. data/features/support/env.rb +7 -5
  52. data/features/tag_logic.feature +7 -7
  53. data/features/wire_protocol.feature +1 -1
  54. data/gem_tasks/features.rake +2 -0
  55. data/lib/autotest/cucumber_mixin.rb +4 -4
  56. data/lib/cucumber/ast.rb +0 -1
  57. data/lib/cucumber/ast/feature.rb +9 -12
  58. data/lib/cucumber/ast/feature_element.rb +4 -4
  59. data/lib/cucumber/ast/features.rb +2 -2
  60. data/lib/cucumber/ast/table.rb +1 -0
  61. data/lib/cucumber/ast/tags.rb +1 -97
  62. data/lib/cucumber/cli/configuration.rb +3 -1
  63. data/lib/cucumber/cli/main.rb +20 -23
  64. data/lib/cucumber/cli/options.rb +9 -18
  65. data/lib/cucumber/filter.rb +4 -2
  66. data/lib/cucumber/formatter/console.rb +8 -28
  67. data/lib/cucumber/formatter/html.rb +1 -1
  68. data/lib/cucumber/formatter/pdf.rb +0 -4
  69. data/lib/cucumber/formatter/pretty.rb +1 -2
  70. data/lib/cucumber/formatter/progress.rb +1 -5
  71. data/lib/cucumber/formatter/rerun.rb +2 -0
  72. data/lib/cucumber/formatter/unicode.rb +6 -6
  73. data/lib/cucumber/language_support/language_methods.rb +0 -1
  74. data/lib/cucumber/parser/common.rb +16 -4
  75. data/lib/cucumber/parser/feature.rb +92 -27
  76. data/lib/cucumber/parser/feature.tt +8 -6
  77. data/lib/cucumber/parser/py_string.rb +12 -3
  78. data/lib/cucumber/parser/table.rb +12 -3
  79. data/lib/cucumber/rb_support/rb_dsl.rb +6 -6
  80. data/lib/cucumber/rb_support/rb_hook.rb +4 -5
  81. data/lib/cucumber/rb_support/rb_language.rb +1 -1
  82. data/lib/cucumber/tag_expression.rb +41 -0
  83. data/spec/cucumber/ast/feature_spec.rb +23 -2
  84. data/spec/cucumber/ast/scenario_outline_spec.rb +0 -7
  85. data/spec/cucumber/cli/options_spec.rb +3 -3
  86. data/spec/cucumber/formatter/html_spec.rb +10 -0
  87. data/spec/cucumber/formatter/spec_helper.rb +2 -1
  88. data/spec/cucumber/tag_expression_spec.rb +127 -0
  89. metadata +15 -10
  90. data/spec/cucumber/ast/tags_spec.rb +0 -29
  91. data/spec/cucumber/formatter/console_spec.rb +0 -20
@@ -1,3 +1,28 @@
1
+ == 0.6.0 2010-01-03
2
+
3
+ Bumping to 0.6.0 for this release since we're breaking backwards compatibility with tags.
4
+
5
+ === Changed Features
6
+ * Tag boolean logic is inverted. What was ORed before is now ANDed and vice versa. (#504 Aslak Hellesøy)
7
+ This makes it more practical in most cases to mix tags from profiles and the command line
8
+
9
+ In previous versions the following command line:
10
+
11
+ --tags @foo,~@bar --tags @zap (on the command line)
12
+
13
+ or the following Hook:
14
+
15
+ Before("@foo,~@bar", "@zap") (for Hooks)
16
+
17
+ would be equivalent to the boolean expression: (@foo && !@bar) || @zap
18
+ Starting with this release it will be equivalent to: (@foo || !@bar) && @zap
19
+
20
+ === Bugfixes
21
+ * Cucumber not loading the correct settings using autospec (#496, #523 Aslak Hellesøy, Andrzej Śliwa)
22
+ * Ruby 1.9.2 fails to load features/support/env.rb (#549 Aslak Hellesøy)
23
+ * All features (except 4) pass on 1.9.2 (but not on 1.9.1) (Aslak Hellesøy)
24
+ * Add missing require statement in rerun formatter which broke RubyMine (Noah Sussman)
25
+
1
26
  == 0.5.3 2009-12-22
2
27
 
3
28
  Another small release today to please a sister project. This time Cuke4Nuke.
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ require 'term/ansicolor'
4
4
  require 'rake'
5
5
  $:.unshift(File.dirname(__FILE__) + '/lib')
6
6
  require 'cucumber/formatter/ansicolor'
7
+ require 'cucumber/platform'
7
8
 
8
9
  begin
9
10
  require 'jeweler'
@@ -23,10 +24,10 @@ begin
23
24
  gem.add_dependency 'diff-lcs', '>= 1.1.2'
24
25
  gem.add_dependency 'json_pure', '>= 1.2.0'
25
26
 
26
- gem.add_development_dependency 'nokogiri', '>= 1.4.0'
27
- gem.add_development_dependency 'prawn', '>= 0.5.1'
27
+ gem.add_development_dependency 'nokogiri', '>= 1.4.1'
28
+ gem.add_development_dependency 'prawn', '>= 0.6.3'
28
29
  gem.add_development_dependency 'rspec', '>= 1.2.9'
29
- gem.add_development_dependency 'spork', '>= 0.7.4'
30
+ gem.add_development_dependency 'spork', '>= 0.7.5' unless Cucumber::JRUBY || Cucumber::WINDOWS
30
31
 
31
32
  extend Cucumber::Formatter::ANSIColor
32
33
  gem.post_install_message = <<-POST_INSTALL_MESSAGE
@@ -1,4 +1,5 @@
1
1
  ---
2
- :patch: 3
3
2
  :major: 0
4
- :minor: 5
3
+ :minor: 6
4
+ :patch: 0
5
+ :build:
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber}
8
- s.version = "0.5.3"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aslak Helles\303\270y"]
12
- s.date = %q{2009-12-22}
12
+ s.date = %q{2010-01-03}
13
13
  s.default_executable = %q{cucumber}
14
14
  s.description = %q{A BDD tool written in Ruby}
15
15
  s.email = %q{cukes@googlegroups.com}
@@ -91,6 +91,7 @@ Gem::Specification.new do |s|
91
91
  "examples/i18n/fr/features/addition.feature",
92
92
  "examples/i18n/fr/features/addition2.feature",
93
93
  "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb",
94
+ "examples/i18n/fr/features/support/env.rb",
94
95
  "examples/i18n/fr/lib/calculatrice.rb",
95
96
  "examples/i18n/he/Rakefile",
96
97
  "examples/i18n/he/features/addition.feature",
@@ -118,6 +119,7 @@ Gem::Specification.new do |s|
118
119
  "examples/i18n/ja/features/addition.feature",
119
120
  "examples/i18n/ja/features/division.feature",
120
121
  "examples/i18n/ja/features/step_definitons/calculator_steps.rb",
122
+ "examples/i18n/ja/features/support/env.rb",
121
123
  "examples/i18n/ja/lib/calculator.rb",
122
124
  "examples/i18n/ko/.gitignore",
123
125
  "examples/i18n/ko/Rakefile",
@@ -182,6 +184,7 @@ Gem::Specification.new do |s|
182
184
  "examples/i18n/sr/Rakefile",
183
185
  "examples/i18n/sr/features/sabiranje.feature",
184
186
  "examples/i18n/sr/features/step_definitons/calculator_steps.rb",
187
+ "examples/i18n/sr/features/support/env.rb",
185
188
  "examples/i18n/sr/lib/calculator.rb",
186
189
  "examples/i18n/tr/.gitignore",
187
190
  "examples/i18n/tr/Rakefile",
@@ -470,6 +473,7 @@ Gem::Specification.new do |s|
470
473
  "lib/cucumber/step_definition_light.rb",
471
474
  "lib/cucumber/step_match.rb",
472
475
  "lib/cucumber/step_mother.rb",
476
+ "lib/cucumber/tag_expression.rb",
473
477
  "lib/cucumber/webrat/element_locator.rb",
474
478
  "lib/cucumber/webrat/table_locator.rb",
475
479
  "lib/cucumber/wire_support/configuration.rb",
@@ -492,7 +496,6 @@ Gem::Specification.new do |s|
492
496
  "spec/cucumber/ast/step_collection_spec.rb",
493
497
  "spec/cucumber/ast/step_spec.rb",
494
498
  "spec/cucumber/ast/table_spec.rb",
495
- "spec/cucumber/ast/tags_spec.rb",
496
499
  "spec/cucumber/ast/tree_walker_spec.rb",
497
500
  "spec/cucumber/broadcaster_spec.rb",
498
501
  "spec/cucumber/cli/configuration_spec.rb",
@@ -503,7 +506,6 @@ Gem::Specification.new do |s|
503
506
  "spec/cucumber/core_ext/proc_spec.rb",
504
507
  "spec/cucumber/formatter/ansicolor_spec.rb",
505
508
  "spec/cucumber/formatter/color_io_spec.rb",
506
- "spec/cucumber/formatter/console_spec.rb",
507
509
  "spec/cucumber/formatter/duration_spec.rb",
508
510
  "spec/cucumber/formatter/html_spec.rb",
509
511
  "spec/cucumber/formatter/junit_spec.rb",
@@ -516,6 +518,7 @@ Gem::Specification.new do |s|
516
518
  "spec/cucumber/sell_cucumbers.feature",
517
519
  "spec/cucumber/step_match_spec.rb",
518
520
  "spec/cucumber/step_mother_spec.rb",
521
+ "spec/cucumber/tag_expression_spec.rb",
519
522
  "spec/cucumber/treetop_parser/empty_feature.feature",
520
523
  "spec/cucumber/treetop_parser/empty_scenario.feature",
521
524
  "spec/cucumber/treetop_parser/empty_scenario_outline.feature",
@@ -544,7 +547,7 @@ Gem::Specification.new do |s|
544
547
 
545
548
  (::) U P G R A D I N G (::)
546
549
 
547
- Thank you for installing cucumber-0.5.3.
550
+ Thank you for installing cucumber-0.6.0.
548
551
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
549
552
  for important information about this release. Happy cuking!
550
553
 
@@ -568,7 +571,6 @@ for important information about this release. Happy cuking!
568
571
  "spec/cucumber/ast/step_collection_spec.rb",
569
572
  "spec/cucumber/ast/step_spec.rb",
570
573
  "spec/cucumber/ast/table_spec.rb",
571
- "spec/cucumber/ast/tags_spec.rb",
572
574
  "spec/cucumber/ast/tree_walker_spec.rb",
573
575
  "spec/cucumber/broadcaster_spec.rb",
574
576
  "spec/cucumber/cli/configuration_spec.rb",
@@ -579,7 +581,6 @@ for important information about this release. Happy cuking!
579
581
  "spec/cucumber/core_ext/proc_spec.rb",
580
582
  "spec/cucumber/formatter/ansicolor_spec.rb",
581
583
  "spec/cucumber/formatter/color_io_spec.rb",
582
- "spec/cucumber/formatter/console_spec.rb",
583
584
  "spec/cucumber/formatter/duration_spec.rb",
584
585
  "spec/cucumber/formatter/html_spec.rb",
585
586
  "spec/cucumber/formatter/junit_spec.rb",
@@ -591,6 +592,7 @@ for important information about this release. Happy cuking!
591
592
  "spec/cucumber/rb_support/regexp_argument_matcher_spec.rb",
592
593
  "spec/cucumber/step_match_spec.rb",
593
594
  "spec/cucumber/step_mother_spec.rb",
595
+ "spec/cucumber/tag_expression_spec.rb",
594
596
  "spec/cucumber/wire_support/configuration_spec.rb",
595
597
  "spec/cucumber/wire_support/wire_exception_spec.rb",
596
598
  "spec/cucumber/wire_support/wire_language_spec.rb",
@@ -623,6 +625,7 @@ for important information about this release. Happy cuking!
623
625
  "examples/i18n/fi/features/step_definitons/laskin_steps.rb",
624
626
  "examples/i18n/fi/lib/laskin.rb",
625
627
  "examples/i18n/fr/features/step_definitions/calculatrice_steps.rb",
628
+ "examples/i18n/fr/features/support/env.rb",
626
629
  "examples/i18n/fr/lib/calculatrice.rb",
627
630
  "examples/i18n/he/features/step_definitons/calculator_steps.rb",
628
631
  "examples/i18n/he/lib/calculator.rb",
@@ -633,6 +636,7 @@ for important information about this release. Happy cuking!
633
636
  "examples/i18n/it/features/step_definitons/calcolatrice_steps.rb",
634
637
  "examples/i18n/it/lib/calcolatrice.rb",
635
638
  "examples/i18n/ja/features/step_definitons/calculator_steps.rb",
639
+ "examples/i18n/ja/features/support/env.rb",
636
640
  "examples/i18n/ja/lib/calculator.rb",
637
641
  "examples/i18n/ko/features/step_definitons/calculator_steps.rb",
638
642
  "examples/i18n/ko/lib/calculator.rb",
@@ -660,6 +664,7 @@ for important information about this release. Happy cuking!
660
664
  "examples/i18n/sk/features/step_definitons/calculator_steps.rb",
661
665
  "examples/i18n/sk/lib/calculator.rb",
662
666
  "examples/i18n/sr/features/step_definitons/calculator_steps.rb",
667
+ "examples/i18n/sr/features/support/env.rb",
663
668
  "examples/i18n/sr/lib/calculator.rb",
664
669
  "examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb",
665
670
  "examples/i18n/sr-latn/lib/calculator.rb",
@@ -723,10 +728,10 @@ for important information about this release. Happy cuking!
723
728
  s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
724
729
  s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
725
730
  s.add_runtime_dependency(%q<json_pure>, [">= 1.2.0"])
726
- s.add_development_dependency(%q<nokogiri>, [">= 1.4.0"])
727
- s.add_development_dependency(%q<prawn>, [">= 0.5.1"])
731
+ s.add_development_dependency(%q<nokogiri>, [">= 1.4.1"])
732
+ s.add_development_dependency(%q<prawn>, [">= 0.6.3"])
728
733
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
729
- s.add_development_dependency(%q<spork>, [">= 0.7.4"])
734
+ s.add_development_dependency(%q<spork>, [">= 0.7.5"])
730
735
  else
731
736
  s.add_dependency(%q<term-ansicolor>, [">= 1.0.4"])
732
737
  s.add_dependency(%q<treetop>, [">= 1.4.2"])
@@ -734,10 +739,10 @@ for important information about this release. Happy cuking!
734
739
  s.add_dependency(%q<builder>, [">= 2.1.2"])
735
740
  s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
736
741
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
737
- s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
738
- s.add_dependency(%q<prawn>, [">= 0.5.1"])
742
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
743
+ s.add_dependency(%q<prawn>, [">= 0.6.3"])
739
744
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
740
- s.add_dependency(%q<spork>, [">= 0.7.4"])
745
+ s.add_dependency(%q<spork>, [">= 0.7.5"])
741
746
  end
742
747
  else
743
748
  s.add_dependency(%q<term-ansicolor>, [">= 1.0.4"])
@@ -746,10 +751,10 @@ for important information about this release. Happy cuking!
746
751
  s.add_dependency(%q<builder>, [">= 2.1.2"])
747
752
  s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
748
753
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
749
- s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
750
- s.add_dependency(%q<prawn>, [">= 0.5.1"])
754
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
755
+ s.add_dependency(%q<prawn>, [">= 0.6.3"])
751
756
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
752
- s.add_dependency(%q<spork>, [">= 0.7.4"])
757
+ s.add_dependency(%q<spork>, [">= 0.7.5"])
753
758
  end
754
759
  end
755
760
 
@@ -4,7 +4,9 @@ rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format
4
4
  std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip"
5
5
  %>
6
6
  default: <%= std_opts %>
7
- jruby: <%= std_opts %>,~@spork,~@wire
8
- run_code_run: <%= std_opts %>,~@spork
9
- windows_mri: <%= std_opts %>,~@spork
7
+ jruby: <%= std_opts %> --tags ~@spork --tags ~@wire
8
+ run_code_run: <%= std_opts %> --tags ~@spork
9
+ windows_mri: <%= std_opts %> --tags ~@spork --tags ~@wire --tags ~@needs-many-fonts CUCUMBER_FORWARD_SLASH_PATHS=true
10
+ ruby_1_9: <%= std_opts %> --tags ~@fails_on_1_9
10
11
  wip: --tags @wip:3 --wip features
12
+ none: --format pretty
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,6 +1,5 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib')
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
- $KCODE='u' unless Cucumber::RUBY_1_9
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculadora'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'lommeregner'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
- $KCODE='u' unless Cucumber::RUBY_1_9
3
2
  require 'cucumber/formatter/unicode'
4
3
  require 'spec/expectations'
5
4
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
- require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
2
+ require 'spec/expectations'
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
- require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
2
+ require 'spec/expectations'
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculador'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'kalkulaator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib')
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'laskin'
6
6
 
7
7
  Before do
@@ -1,9 +1,4 @@
1
1
  # encoding: utf-8
2
- require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatter/unicode'
5
- require 'calculatrice'
6
-
7
2
  Soit /^une calculatrice$/ do
8
3
  @calc = Calculatrice.new
9
4
  end
@@ -32,7 +27,6 @@ Alors /le résultat doit être (\d*)/ do |result|
32
27
  result.to_i.should == @expected_result
33
28
  end
34
29
 
35
-
36
30
  Soit /^que je tape sur la touche "\+"$/ do
37
31
  # noop
38
32
  end
@@ -0,0 +1,5 @@
1
+ # encoding: utf-8
2
+ require 'spec/expectations'
3
+ require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
+ require 'calculatrice'
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  class Calculator
2
3
  def push(n)
3
4
  @args ||= []
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calcolatrice'
6
6
 
7
7
  Before do
@@ -1,9 +1,4 @@
1
1
  # encoding: UTF-8
2
- require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatter/unicode'
5
- require 'calculator'
6
-
7
2
  Before do
8
3
  @calc = Calculator.new
9
4
  end
@@ -0,0 +1,5 @@
1
+ # encoding: utf-8
2
+ require 'spec/expectations'
3
+ require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
+ require 'calculator'
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
- $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
3
  require 'cucumber/formatter/unicode'
4
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
5
5
  require 'calculator'
6
6
 
7
7
  Before do