Permalink
Browse files

upgrade cucumber and aruba

  • Loading branch information...
1 parent 4ee9369 commit 8f7461465a1424943fd21bde2dc2afb8ddf03853 @dchelimsky dchelimsky committed Mar 25, 2011
Showing with 173 additions and 168 deletions.
  1. +2 −2 Gemfile
  2. +2 −2 features/command_line/configure.feature
  3. +10 −10 features/command_line/example_name_option.feature
  4. +4 −4 features/command_line/exit_status.feature
  5. +4 −4 features/command_line/format_option.feature
  6. +11 −11 features/command_line/line_number_appended_to_path.feature
  7. +2 −2 features/command_line/line_number_option.feature
  8. +3 −3 features/command_line/rake_task.feature
  9. +9 −9 features/command_line/tag.feature
  10. +2 −2 features/configuration/alias_example_to.feature
  11. +3 −3 features/configuration/custom_settings.feature
  12. +3 −3 features/configuration/fail_fast.feature
  13. +4 −4 features/configuration/for_groups_matching.feature
  14. +4 −4 features/configuration/read_options_from_file.feature
  15. +2 −2 features/example_groups/basic_structure.feature
  16. +4 −4 features/example_groups/shared_example_group.feature
  17. +3 −3 features/expectation_framework_integration/configure_expectation_framework.feature
  18. +5 −5 features/filtering/exclusion_filters.feature
  19. +5 −5 features/filtering/if_and_unless.feature
  20. +4 −4 features/filtering/inclusion_filters.feature
  21. +1 −1 features/filtering/run_all_when_everything_filtered.feature
  22. +1 −1 features/formatters/custom_formatter.feature
  23. +1 −1 features/formatters/text_formatter.feature
  24. +2 −2 features/helper_methods/arbitrary_methods.feature
  25. +2 −2 features/helper_methods/let.feature
  26. +5 −5 features/helper_methods/modules.feature
  27. +11 −11 features/hooks/around_hooks.feature
  28. +15 −15 features/hooks/before_and_after_hooks.feature
  29. +6 −6 features/hooks/filtering.feature
  30. +1 −1 features/metadata/current_example.feature
  31. +1 −1 features/metadata/described_class.feature
  32. +4 −4 features/metadata/user_defined.feature
  33. +1 −1 features/mock_framework_integration/use_any_framework.feature
  34. +1 −1 features/mock_framework_integration/use_flexmock.feature
  35. +1 −1 features/mock_framework_integration/use_mocha.feature
  36. +1 −1 features/mock_framework_integration/use_rr.feature
  37. +1 −1 features/mock_framework_integration/use_rspec.feature
  38. +8 −8 features/pending/pending_examples.feature
  39. +1 −1 features/spec_files/arbitrary_file_suffix.feature
  40. +3 −3 features/step_definitions/additional_cli_steps.rb
  41. +5 −5 features/subject/attribute_of_subject.feature
  42. +5 −5 features/subject/explicit_subject.feature
  43. +2 −2 features/subject/implicit_receiver.feature
  44. +2 −2 features/subject/implicit_subject.feature
  45. +6 −1 features/support/env.rb
View
@@ -12,8 +12,8 @@ end
### dev dependencies
gem "rake", "0.8.7"
-gem "cucumber", "0.9.4"
-gem "aruba", "0.2.2"
+gem "cucumber", "~> 0.10.2"
+gem "aruba", "~> 0.3.5"
gem "rcov", "0.9.9", :platforms => :mri
gem "relish", "0.2.0"
gem "guard-rspec", "0.1.9"
@@ -8,7 +8,7 @@ Feature: --configure option
to load RSpec's Autotest subclass.
Scenario: generate .rspec file for autotest
- When I run "rspec --configure autotest"
+ When I run `rspec --configure autotest`
Then the following files should exist:
| .rspec |
And the output should contain ".rspec file did not exist, so it was created."
@@ -18,5 +18,5 @@ Feature: --configure option
"""
--color
"""
- When I run "rspec --configure autotest"
+ When I run `rspec --configure autotest`
Then the output should contain ".rspec file already exists, so nothing was changed."
@@ -46,41 +46,41 @@ Feature: --example option
"""
Scenario: no matches
- When I run "rspec . --example nothing_like_this"
+ When I run `rspec . --example nothing_like_this`
Then the examples should all pass
Scenario: match on one word
- When I run "rspec . --example example"
+ When I run `rspec . --example example`
Then the examples should all pass
Scenario: one match in each context
- When I run "rspec . --example 'first example'"
+ When I run `rspec . --example 'first example'`
Then the examples should all pass
Scenario: one match in one file using just the example name
- When I run "rspec . --example 'first example in first group'"
+ When I run `rspec . --example 'first example in first group'`
Then the examples should all pass
Scenario: one match in one file using the example name and the group name
- When I run "rspec . --example 'first group first example in first group'"
+ When I run `rspec . --example 'first group first example in first group'`
Then the examples should all pass
Scenario: one match in one file using regexp
- When I run "rspec . --example 'first .* first example'"
+ When I run `rspec . --example 'first .* first example'`
Then the examples should all pass
Scenario: all examples in one group
- When I run "rspec . --example 'first group'"
+ When I run `rspec . --example 'first group'`
Then the examples should all pass
Scenario: one match in one file with group name
- When I run "rspec . --example 'second group first example'"
+ When I run `rspec . --example 'second group first example'`
Then the examples should all pass
Scenario: all examples in one group including examples in nested groups
- When I run "rspec . --example 'third group'"
+ When I run `rspec . --example 'third group'`
Then the examples should all pass
Scenario: Object#method
- When I run "rspec . --example 'Array#length'"
+ When I run `rspec . --example 'Array#length'`
Then the examples should all pass
@@ -11,7 +11,7 @@ Feature: exit status
end
end
"""
- When I run "rspec ok_spec.rb"
+ When I run `rspec ok_spec.rb`
Then the exit status should be 0
And the examples should all pass
@@ -24,7 +24,7 @@ Feature: exit status
end
end
"""
- When I run "rspec ko_spec.rb"
+ When I run `rspec ko_spec.rb`
Then the exit status should be 1
And the output should contain "1 example, 1 failure"
@@ -39,14 +39,14 @@ Feature: exit status
end
end
"""
- When I run "rspec nested_ko_spec.rb"
+ When I run `rspec nested_ko_spec.rb`
Then the exit status should be 1
And the output should contain "1 example, 1 failure"
Scenario: exit with 0 when no examples are run
Given a file named "a_no_examples_spec.rb" with:
"""
"""
- When I run "rspec a_no_examples_spec.rb"
+ When I run `rspec a_no_examples_spec.rb`
Then the exit status should be 0
And the output should contain "0 examples"
@@ -38,11 +38,11 @@ Feature: --format option
"""
Scenario: progress bar format (default)
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain ".F*"
Scenario: documentation format
- When I run "rspec example_spec.rb --format documentation"
+ When I run `rspec example_spec.rb --format documentation`
Then the output should contain:
"""
something
@@ -52,7 +52,7 @@ Feature: --format option
"""
Scenario: documentation format saved to a file
- When I run "rspec example_spec.rb --format documentation --out rspec.txt"
+ When I run `rspec example_spec.rb --format documentation --out rspec.txt`
Then the file "rspec.txt" should contain:
"""
something
@@ -62,7 +62,7 @@ Feature: --format option
"""
Scenario: multiple formats
- When I run "rspec example_spec.rb --format progress --format documentation --out rspec.txt"
+ When I run `rspec example_spec.rb --format progress --format documentation --out rspec.txt`
Then the output should contain ".F*"
And the file "rspec.txt" should contain:
"""
@@ -29,77 +29,77 @@ Feature: line number appended to file path
"""
Scenario: nested groups - outer group on declaration line
- When I run "rspec example_spec.rb:1 --format doc"
+ When I run `rspec example_spec.rb:1 --format doc`
Then the examples should all pass
And the output should contain "second example in outer group"
And the output should contain "first example in outer group"
And the output should contain "example in nested group"
Scenario: nested groups - outer group inside block before example
- When I run "rspec example_spec.rb:2 --format doc"
+ When I run `rspec example_spec.rb:2 --format doc`
Then the examples should all pass
And the output should contain "second example in outer group"
And the output should contain "first example in outer group"
And the output should contain "example in nested group"
Scenario: nested groups - inner group on declaration line
- When I run "rspec example_spec.rb:11 --format doc"
+ When I run `rspec example_spec.rb:11 --format doc`
Then the examples should all pass
And the output should contain "example in nested group"
And the output should not contain "second example in outer group"
And the output should not contain "first example in outer group"
Scenario: nested groups - inner group inside block before example
- When I run "rspec example_spec.rb:12 --format doc"
+ When I run `rspec example_spec.rb:12 --format doc`
Then the examples should all pass
And the output should contain "example in nested group"
And the output should not contain "second example in outer group"
And the output should not contain "first example in outer group"
Scenario: two examples - first example on declaration line
- When I run "rspec example_spec.rb:3 --format doc"
+ When I run `rspec example_spec.rb:3 --format doc`
Then the examples should all pass
And the output should contain "first example in outer group"
But the output should not contain "second example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - first example inside block
- When I run "rspec example_spec.rb:4 --format doc"
+ When I run `rspec example_spec.rb:4 --format doc`
Then the examples should all pass
And the output should contain "first example in outer group"
But the output should not contain "second example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - first example on end
- When I run "rspec example_spec.rb:5 --format doc"
+ When I run `rspec example_spec.rb:5 --format doc`
Then the examples should all pass
And the output should contain "first example in outer group"
But the output should not contain "second example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - first example after end but before next example
- When I run "rspec example_spec.rb:6 --format doc"
+ When I run `rspec example_spec.rb:6 --format doc`
Then the examples should all pass
And the output should contain "first example in outer group"
But the output should not contain "second example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - second example on declaration line
- When I run "rspec example_spec.rb:7 --format doc"
+ When I run `rspec example_spec.rb:7 --format doc`
Then the examples should all pass
And the output should contain "second example in outer group"
But the output should not contain "first example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - second example inside block
- When I run "rspec example_spec.rb:7 --format doc"
+ When I run `rspec example_spec.rb:7 --format doc`
Then the examples should all pass
And the output should contain "second example in outer group"
But the output should not contain "first example in outer group"
And the output should not contain "example in nested group"
Scenario: two examples - second example on end
- When I run "rspec example_spec.rb:7 --format doc"
+ When I run `rspec example_spec.rb:7 --format doc`
Then the examples should all pass
And the output should contain "second example in outer group"
But the output should not contain "first example in outer group"
@@ -21,7 +21,7 @@ Feature: --line_number option
end
"""
- When I run "rspec example_spec.rb --line_number 5 --format doc"
+ When I run `rspec example_spec.rb --line_number 5 --format doc`
Then the examples should all pass
Then the output should contain "should be > 8"
But the output should not contain "should be < 10"
@@ -39,7 +39,7 @@ Feature: --line_number option
end
"""
- When I run "rspec example_spec.rb --line_number 5 --format doc"
+ When I run `rspec example_spec.rb --line_number 5 --format doc`
Then the examples should all pass
Then the output should contain "should be > 8"
But the output should not contain "should be < 10"
@@ -19,7 +19,7 @@ Feature: rake task
end
end
"""
- When I run "rake"
+ When I run `rake`
Then the stderr should contain "ruby -S rspec"
Then the exit status should be 0
@@ -40,7 +40,7 @@ Feature: rake task
end
end
"""
- When I run "rake"
+ When I run `rake`
Then the exit status should be 1
Scenario: fail_on_error = false with failing spec (exit status is 0)
@@ -62,7 +62,7 @@ Feature: rake task
end
end
"""
- When I run "rake"
+ When I run `rake`
Then the exit status should be 0
@@ -27,48 +27,48 @@ Feature: --tag option
"""
Scenario: filter examples with non-existent tag
- When I run "rspec . --tag mytag"
+ When I run `rspec . --tag mytag`
And the examples should all pass
Scenario: filter examples with a simple tag
- When I run "rspec . --tag focus"
+ When I run `rspec . --tag focus`
Then the output should contain "Run filtered using {:focus=>true}"
And the examples should all pass
Scenario: filter examples with a simple tag and @
- When I run "rspec . --tag @focus"
+ When I run `rspec . --tag @focus`
Then the output should contain "Run filtered using {:focus=>true}"
Then the examples should all pass
Scenario: filter examples with a name:value tag
- When I run "rspec . --tag type:special"
+ When I run `rspec . --tag type:special`
Then the output should contain:
"""
Run filtered using {:type=>"special"}
"""
And the examples should all pass
Scenario: filter examples with a name:value tag and @
- When I run "rspec . --tag @type:special"
+ When I run `rspec . --tag @type:special`
Then the output should contain:
"""
Run filtered using {:type=>"special"}
"""
And the examples should all pass
Scenario: exclude examples with a simple tag
- When I run "rspec . --tag ~skip"
+ When I run `rspec . --tag ~skip`
Then the examples should all pass
Scenario: exclude examples with a simple tag and @
- When I run "rspec . --tag ~@skip"
+ When I run `rspec . --tag ~@skip`
Then the examples should all pass
Scenario: exclude examples with a name:value tag
- When I run "rspec . --tag ~speed:slow"
+ When I run `rspec . --tag ~speed:slow`
Then the examples should all pass
Scenario: exclude examples with a name:value tag and @
- When I run "rspec . --tag ~@speed:slow"
+ When I run `rspec . --tag ~@speed:slow`
Then the examples should all pass
@@ -22,7 +22,7 @@ Feature: alias_example_to
end
end
"""
- When I run "rspec alias_example_to_spec.rb --format doc"
+ When I run `rspec alias_example_to_spec.rb --format doc`
Then the output should contain "does another thing"
And the output should not contain "does one thing"
@@ -43,6 +43,6 @@ Feature: alias_example_to
end
end
"""
- When I run "rspec use_symbols_as_metadata_spec.rb --format doc"
+ When I run `rspec use_symbols_as_metadata_spec.rb --format doc`
Then the output should contain "does another thing"
And the output should not contain "does one thing"
@@ -29,7 +29,7 @@ Feature: custom settings
end
end
"""
- When I run "rspec ./additional_setting_spec.rb"
+ When I run `rspec ./additional_setting_spec.rb`
Then the examples should all pass
Scenario: default to true
@@ -55,7 +55,7 @@ Feature: custom settings
end
end
"""
- When I run "rspec ./additional_setting_spec.rb"
+ When I run `rspec ./additional_setting_spec.rb`
Then the examples should all pass
Scenario: overridden in a subsequent RSpec.configure block
@@ -79,6 +79,6 @@ Feature: custom settings
end
end
"""
- When I run "rspec ./additional_setting_spec.rb"
+ When I run `rspec ./additional_setting_spec.rb`
Then the examples should all pass
Oops, something went wrong.

0 comments on commit 8f74614

Please sign in to comment.