Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upgrade cucumber and aruba

  • Loading branch information...
commit 8f7461465a1424943fd21bde2dc2afb8ddf03853 1 parent 4ee9369
@dchelimsky dchelimsky authored
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
4 Gemfile
@@ -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"
View
4 features/command_line/configure.feature
@@ -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."
View
20 features/command_line/example_name_option.feature
@@ -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
View
8 features/command_line/exit_status.feature
@@ -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,7 +39,7 @@ 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"
@@ -47,6 +47,6 @@ Feature: exit status
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"
View
8 features/command_line/format_option.feature
@@ -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:
"""
View
22 features/command_line/line_number_appended_to_path.feature
@@ -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"
View
4 features/command_line/line_number_option.feature
@@ -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"
View
6 features/command_line/rake_task.feature
@@ -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
View
18 features/command_line/tag.feature
@@ -27,21 +27,21 @@ 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"}
@@ -49,7 +49,7 @@ Feature: --tag option
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"}
@@ -57,18 +57,18 @@ Feature: --tag option
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
View
4 features/configuration/alias_example_to.feature
@@ -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"
View
6 features/configuration/custom_settings.feature
@@ -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
View
6 features/configuration/fail_fast.feature
@@ -21,7 +21,7 @@ Feature: fail fast
end
end
"""
- When I run "rspec spec/example_spec.rb"
+ When I run `rspec spec/example_spec.rb`
Then the examples should all pass
Scenario: fail_fast with first example failing (only runs the one example)
@@ -37,7 +37,7 @@ Feature: fail fast
end
end
"""
- When I run "rspec spec/example_spec.rb -fd"
+ When I run `rspec spec/example_spec.rb -fd`
Then the output should contain "1 example, 1 failure"
Scenario: fail_fast with multiple files, second example failing (only runs the first two examples)
@@ -73,5 +73,5 @@ Feature: fail fast
end
end
"""
- When I run "rspec spec"
+ When I run `rspec spec`
Then the output should contain "2 examples, 1 failure"
View
8 features/configuration/for_groups_matching.feature
@@ -23,7 +23,7 @@ Feature: for groups matching
end
end
"""
- When I run "rspec for_groups_matching_spec.rb"
+ When I run `rspec for_groups_matching_spec.rb`
Then the examples should all pass
Scenario: define method using let for groups matching metadata
@@ -41,7 +41,7 @@ Feature: for groups matching
end
end
"""
- When I run "rspec for_groups_matching_spec.rb"
+ When I run `rspec for_groups_matching_spec.rb`
Then the examples should all pass
Scenario: define subject for groups matching metadata
@@ -59,7 +59,7 @@ Feature: for groups matching
end
end
"""
- When I run "rspec for_groups_matching_spec.rb"
+ When I run `rspec for_groups_matching_spec.rb`
Then the examples should all pass
Scenario: Use symbols as metadata
@@ -84,5 +84,5 @@ Feature: for groups matching
end
end
"""
- When I run "rspec use_symbols_as_metadata_spec.rb"
+ When I run `rspec use_symbols_as_metadata_spec.rb`
Then the examples should all pass
View
8 features/configuration/read_options_from_file.feature
@@ -30,7 +30,7 @@ Feature: read command line configuration options from files
end
end
"""
- When I run "rspec ./spec/example_spec.rb"
+ When I run `rspec ./spec/example_spec.rb`
Then the examples should all pass
Scenario: custom options file
@@ -47,7 +47,7 @@ Feature: read command line configuration options from files
end
end
"""
- When I run "rspec spec/example_spec.rb --options my.options"
+ When I run `rspec spec/example_spec.rb --options my.options`
Then the examples should all pass
Scenario: RSpec ignores ./.rspec when custom options file is used
@@ -67,7 +67,7 @@ Feature: read command line configuration options from files
end
end
"""
- When I run "rspec spec/example_spec.rb --options my.options"
+ When I run `rspec spec/example_spec.rb --options my.options`
Then the examples should all pass
Scenario: using ERB in .rspec
@@ -83,5 +83,5 @@ Feature: read command line configuration options from files
end
end
"""
- When I run "rspec ./spec/example_spec.rb"
+ When I run `rspec ./spec/example_spec.rb`
Then the examples should all pass
View
4 features/example_groups/basic_structure.feature
@@ -23,7 +23,7 @@ Feature: basic structure (describe/it)
end
end
"""
- When I run "rspec sample_spec.rb -fn"
+ When I run `rspec sample_spec.rb -fn`
Then the output should contain:
"""
something
@@ -44,7 +44,7 @@ Feature: basic structure (describe/it)
end
end
"""
- When I run "rspec nested_example_groups_spec.rb -fdoc"
+ When I run `rspec nested_example_groups_spec.rb -fdoc`
Then the output should contain:
"""
something
View
8 features/example_groups/shared_example_group.feature
@@ -45,7 +45,7 @@ Feature: shared example group
it_behaves_like "a collection"
end
"""
- When I run "rspec collection_spec.rb --format documentation"
+ When I run `rspec collection_spec.rb --format documentation`
Then the examples should all pass
And the output should contain:
"""
@@ -97,7 +97,7 @@ Feature: shared example group
end
end
"""
- When I run "rspec shared_example_group_spec.rb --format documentation"
+ When I run `rspec shared_example_group_spec.rb --format documentation`
Then the examples should all pass
And the output should contain:
"""
@@ -133,7 +133,7 @@ Feature: shared example group
it_should_behave_like "a measurable object", 6, [:size, :length]
end
"""
- When I run "rspec shared_example_group_params_spec.rb --format documentation"
+ When I run `rspec shared_example_group_params_spec.rb --format documentation`
Then the examples should all pass
And the output should contain:
"""
@@ -167,7 +167,7 @@ Feature: shared example group
end
end
"""
- When I run "rspec shared_example_group_spec.rb --format documentation"
+ When I run `rspec shared_example_group_spec.rb --format documentation`
Then the examples should all pass
And the output should contain:
"""
View
6 features/expectation_framework_integration/configure_expectation_framework.feature
@@ -26,7 +26,7 @@ Feature: configure expectation framework
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
Scenario: configure test/unit assertions
@@ -44,7 +44,7 @@ Feature: configure expectation framework
specify { assert 5 < 6 }
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "2 examples, 1 failure"
And the output should contain:
"""
@@ -69,5 +69,5 @@ Feature: configure expectation framework
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
View
10 features/filtering/exclusion_filters.feature
@@ -23,7 +23,7 @@ Feature: exclusion filters
end
end
"""
- When I run "rspec ./spec/sample_spec.rb --format doc"
+ When I run `rspec ./spec/sample_spec.rb --format doc`
Then the output should contain "does one thing"
And the output should not contain "does another thing"
@@ -47,7 +47,7 @@ Feature: exclusion filters
end
end
"""
- When I run "rspec ./spec/sample_spec.rb --format doc"
+ When I run `rspec ./spec/sample_spec.rb --format doc`
Then the output should contain "group 2 example 1"
And the output should not contain "group 1 example 1"
And the output should not contain "group 1 example 2"
@@ -80,7 +80,7 @@ Feature: exclusion filters
end
end
"""
- When I run "rspec ./spec/sample_spec.rb --format doc"
+ When I run `rspec ./spec/sample_spec.rb --format doc`
Then the output should match /No examples were matched. Perhaps \{.*:broken=>true.*\} is excluding everything?/
And the examples should all pass
And the output should not contain "group 1"
@@ -111,7 +111,7 @@ Feature: exclusion filters
end
end
"""
- When I run "rspec ./spec/before_after_all_exclusion_filter_spec.rb"
+ When I run `rspec ./spec/before_after_all_exclusion_filter_spec.rb`
Then the output should contain "before all in included group"
And the output should contain "after all in included group"
And the output should not contain "before all in excluded group"
@@ -134,6 +134,6 @@ Feature: exclusion filters
end
end
"""
- When I run "rspec symbols_as_metadata_spec.rb --format doc"
+ When I run `rspec symbols_as_metadata_spec.rb --format doc`
Then the output should contain "does one thing"
And the output should not contain "does another thing"
View
10 features/filtering/if_and_unless.feature
@@ -24,7 +24,7 @@ Feature: :if and :unless
it("no :if group no :if example") { }
end
"""
- When I run "rspec implicit_if_filter_spec.rb --format doc"
+ When I run `rspec implicit_if_filter_spec.rb --format doc`
Then the output should contain all of these:
| :if => true group :if => true example |
| :if => true group no :if example |
@@ -58,7 +58,7 @@ Feature: :if and :unless
it("no :unless group no :unless example") { }
end
"""
- When I run "rspec implicit_unless_filter_spec.rb --format doc"
+ When I run `rspec implicit_unless_filter_spec.rb --format doc`
Then the output should contain all of these:
| :unless => true group :unless => false example |
| :unless => false group :unless => false example |
@@ -94,7 +94,7 @@ Feature: :if and :unless
it("unfocused :unless => false example", :unless => false) { }
end
"""
- When I run "rspec explicit_inclusion_filter_spec.rb --format doc"
+ When I run `rspec explicit_inclusion_filter_spec.rb --format doc`
Then the output should contain all of these:
| focused example |
| focused :if => true example |
@@ -127,7 +127,7 @@ Feature: :if and :unless
it("excluded :unless => false example", :unless => false) { }
end
"""
- When I run "rspec explicit_exclusion_filter_spec.rb --format doc"
+ When I run `rspec explicit_exclusion_filter_spec.rb --format doc`
Then the output should contain all of these:
| included example |
| included :if => true example |
@@ -156,7 +156,7 @@ Feature: :if and :unless
it(":unless => :exclude_me_for_unless example", :unless => :exclude_me_for_unless) { }
end
"""
- When I run "rspec override_implicit_filters_spec.rb --format doc"
+ When I run `rspec override_implicit_filters_spec.rb --format doc`
Then the output should contain all of these:
| :if => true example |
| :if => false example |
View
8 features/filtering/inclusion_filters.feature
@@ -29,7 +29,7 @@ Feature: inclusion filters
end
end
"""
- When I run "rspec spec/sample_spec.rb --format doc"
+ When I run `rspec spec/sample_spec.rb --format doc`
Then the output should contain "does another thing"
And the output should not contain "does one thing"
@@ -51,7 +51,7 @@ Feature: inclusion filters
end
end
"""
- When I run "rspec spec/sample_spec.rb --format doc"
+ When I run `rspec spec/sample_spec.rb --format doc`
Then the output should contain "group 1 example 1"
And the output should contain "group 1 example 2"
And the output should not contain "group 2 example 1"
@@ -79,7 +79,7 @@ Feature: inclusion filters
end
end
"""
- When I run "rspec ./spec/before_after_all_inclusion_filter_spec.rb"
+ When I run `rspec ./spec/before_after_all_inclusion_filter_spec.rb`
Then the output should contain "before all in focused group"
And the output should contain "after all in focused group"
And the output should not contain "before all in unfocused group"
@@ -101,6 +101,6 @@ Feature: inclusion filters
end
end
"""
- When I run "rspec symbols_as_metadata_spec.rb --format doc"
+ When I run `rspec symbols_as_metadata_spec.rb --format doc`
Then the output should contain "does another thing"
And the output should not contain "does one thing"
View
2  features/filtering/run_all_when_everything_filtered.feature
@@ -31,7 +31,7 @@ Feature: run all when everything filtered
end
end
"""
- When I run "rspec spec/sample_spec.rb --format doc"
+ When I run `rspec spec/sample_spec.rb --format doc`
Then the output should contain "No examples were matched by {:focus=>true}, running all"
And the examples should all pass
And the output should contain:
View
2  features/formatters/custom_formatter.feature
@@ -31,6 +31,6 @@ Feature: custom formatters
end
end
"""
- When I run "rspec example_spec.rb --require ./custom_formatter.rb --format CustomFormatter"
+ When I run `rspec example_spec.rb --require ./custom_formatter.rb --format CustomFormatter`
Then the output should contain "example: my example"
And the exit status should be 0
View
2  features/formatters/text_formatter.feature
@@ -25,7 +25,7 @@ Feature: text formatter
end
end
"""
- When I run "ruby ./integer_spec.rb ./string_spec.rb"
+ When I run `ruby ./integer_spec.rb ./string_spec.rb`
Then the backtrace-normalized output should contain:
"""
Failures:
View
4 features/helper_methods/arbitrary_methods.feature
@@ -18,7 +18,7 @@ Feature: arbitrary helper methods
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
Scenario: use a method defined in a parent group
@@ -36,5 +36,5 @@ Feature: arbitrary helper methods
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
View
4 features/helper_methods/let.feature
@@ -24,7 +24,7 @@ Feature: let and let!
end
end
"""
- When I run "rspec let_spec.rb"
+ When I run `rspec let_spec.rb`
Then the examples should all pass
Scenario: use let! to define a memoized helper method that is called in a before hook
@@ -46,5 +46,5 @@ Feature: let and let!
end
end
"""
- When I run "rspec let_bang_spec.rb"
+ When I run `rspec let_bang_spec.rb`
Then the examples should all pass
View
10 features/helper_methods/modules.feature
@@ -38,7 +38,7 @@ Feature: Define helper methods in a module
end
end
"""
- When I run "rspec include_module_spec.rb"
+ When I run `rspec include_module_spec.rb`
Then the examples should all pass
Scenario: extend a module in all example groups
@@ -58,7 +58,7 @@ Feature: Define helper methods in a module
end
end
"""
- When I run "rspec extend_module_spec.rb"
+ When I run `rspec extend_module_spec.rb`
Then the examples should all pass
And the output should contain "Help is available"
@@ -83,7 +83,7 @@ Feature: Define helper methods in a module
end
end
"""
- When I run "rspec include_module_in_some_groups_spec.rb"
+ When I run `rspec include_module_in_some_groups_spec.rb`
Then the examples should all pass
Scenario: extend a module in only some example groups
@@ -111,7 +111,7 @@ Feature: Define helper methods in a module
end
end
"""
- When I run "rspec extend_module_in_only_some_groups_spec.rb"
+ When I run `rspec extend_module_in_only_some_groups_spec.rb`
Then the examples should all pass
And the output should contain "In a matching group, help is available"
And the output should contain "In a non-matching group, help is not available"
@@ -143,7 +143,7 @@ Feature: Define helper methods in a module
end
end
"""
- When I run "rspec symbols_as_metadata_spec.rb"
+ When I run `rspec symbols_as_metadata_spec.rb`
Then the examples should all pass
And the output should contain "In a group not matching the extend filter, help is not available"
And the output should contain "In a group matching the extend filter, help is available"
View
22 features/hooks/around_hooks.feature
@@ -30,7 +30,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain:
"""
open transaction
@@ -53,7 +53,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain:
"""
around each before
@@ -74,7 +74,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "this should show up in the output"
Scenario: define a global around hook
@@ -94,7 +94,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain:
"""
around each before
@@ -125,7 +125,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain:
"""
around each before
@@ -158,7 +158,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain:
"""
before all
@@ -189,7 +189,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "1 example, 0 failure"
Scenario: implicitly pending examples are detected as Not Yet Implemented
@@ -203,7 +203,7 @@ Feature: around hooks
it "should be detected as Not Yet Implemented"
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "1 example, 0 failures, 1 pending"
And the output should contain:
"""
@@ -226,7 +226,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "1 example, 0 failures, 1 pending"
And the output should contain:
"""
@@ -256,7 +256,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "1 example, 0 failure"
And the output should contain:
"""
@@ -316,7 +316,7 @@ Feature: around hooks
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the output should contain "1 example, 0 failure"
And the output should contain:
"""
View
30 features/hooks/before_and_after_hooks.feature
@@ -52,7 +52,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec before_each_spec.rb"
+ When I run `rspec before_each_spec.rb`
Then the examples should all pass
Scenario: define before(:all) block in example group
@@ -86,10 +86,10 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec before_all_spec.rb"
+ When I run `rspec before_all_spec.rb`
Then the examples should all pass
- When I run "rspec before_all_spec.rb:15"
+ When I run `rspec before_all_spec.rb:15`
Then the examples should all pass
Scenario: failure in before(:all) block
@@ -124,7 +124,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec before_all_spec.rb --format documentation"
+ When I run `rspec before_all_spec.rb --format documentation`
Then the output should contain "5 examples, 5 failures"
And the output should contain:
"""
@@ -139,7 +139,7 @@ Feature: before and after hooks
after all ran
"""
- When I run "rspec before_all_spec.rb:9 --format documentation"
+ When I run `rspec before_all_spec.rb:9 --format documentation`
Then the output should contain "1 example, 1 failure"
And the output should contain:
"""
@@ -162,7 +162,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec after_all_spec.rb"
+ When I run `rspec after_all_spec.rb`
Then the examples should all pass
And the output should contain:
"""
@@ -197,7 +197,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec befores_in_configuration_spec.rb"
+ When I run `rspec befores_in_configuration_spec.rb`
Then the examples should all pass
Scenario: before/after blocks are run in order
@@ -227,7 +227,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec ensure_block_order_spec.rb"
+ When I run `rspec ensure_block_order_spec.rb`
Then the output should contain:
"""
before all
@@ -272,7 +272,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec configuration_spec.rb"
+ When I run `rspec configuration_spec.rb`
Then the output should contain:
"""
before suite
@@ -313,7 +313,7 @@ Feature: before and after hooks
end
"""
- When I run "rspec before_and_after_all_spec.rb"
+ When I run `rspec before_and_after_all_spec.rb`
Then the examples should all pass
And the output should contain:
"""
@@ -323,7 +323,7 @@ Feature: before and after hooks
outer after all
"""
- When I run "rspec before_and_after_all_spec.rb:14"
+ When I run `rspec before_and_after_all_spec.rb:14`
Then the examples should all pass
And the output should contain:
"""
@@ -333,7 +333,7 @@ Feature: before and after hooks
outer after all
"""
- When I run "rspec before_and_after_all_spec.rb:6"
+ When I run `rspec before_and_after_all_spec.rb:6`
Then the examples should all pass
And the output should contain:
"""
@@ -368,7 +368,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec before_all_spec.rb"
+ When I run `rspec before_all_spec.rb`
Then the examples should all pass
Scenario: before/after all blocks have access to state
@@ -403,7 +403,7 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec before_and_after_all_spec.rb"
+ When I run `rspec before_and_after_all_spec.rb`
Then the examples should all pass
Scenario: exception in before(:each) is captured and reported as failure
@@ -418,6 +418,6 @@ Feature: before and after hooks
end
end
"""
- When I run "rspec error_in_before_each_spec.rb"
+ When I run `rspec error_in_before_each_spec.rb`
Then the output should contain "1 example, 1 failure"
And the output should contain "this error"
View
12 features/hooks/filtering.feature
@@ -37,7 +37,7 @@ Feature: filters
end
end
"""
- When I run "rspec filter_before_each_hooks_spec.rb"
+ When I run `rspec filter_before_each_hooks_spec.rb`
Then the examples should all pass
Scenario: filter `after(:each)` hooks using arbitrary metadata
@@ -67,7 +67,7 @@ Feature: filters
end
end
"""
- When I run "rspec filter_after_each_hooks_spec.rb"
+ When I run `rspec filter_after_each_hooks_spec.rb`
Then the output should contain "3 examples, 2 failures"
Scenario: filter around(:each) hooks using arbitrary metadata
@@ -103,7 +103,7 @@ Feature: filters
end
end
"""
- When I run "rspec filter_around_each_hooks_spec.rb"
+ When I run `rspec filter_around_each_hooks_spec.rb`
Then the examples should all pass
Scenario: filter before(:all) hooks using arbitrary metadata
@@ -139,7 +139,7 @@ Feature: filters
end
end
"""
- When I run "rspec filter_before_all_hooks_spec.rb"
+ When I run `rspec filter_before_all_hooks_spec.rb`
Then the examples should all pass
Scenario: filter after(:all) hooks using arbitrary metadata
@@ -175,7 +175,7 @@ Feature: filters
end
end
"""
- When I run "rspec filter_after_all_hooks_spec.rb"
+ When I run `rspec filter_after_all_hooks_spec.rb`
Then the examples should all pass
And the output should contain:
"""
@@ -209,7 +209,7 @@ Feature: filters
it("", :around_each) { puts "example 4" }
end
"""
- When I run "rspec less_verbose_metadata_filter.rb"
+ When I run `rspec less_verbose_metadata_filter.rb`
Then the examples should all pass
And the output should contain:
"""
View
2  features/metadata/current_example.feature
@@ -12,6 +12,6 @@ Feature: current example
end
end
"""
- When I run "rspec spec/example_spec.rb"
+ When I run `rspec spec/example_spec.rb`
Then the example should pass
View
2  features/metadata/described_class.feature
@@ -12,6 +12,6 @@ Feature: described class
end
end
"""
- When I run "rspec spec/example_spec.rb"
+ When I run `rspec spec/example_spec.rb`
Then the example should pass
View
8 features/metadata/user_defined.feature
@@ -42,7 +42,7 @@ Feature: User-defined metadata
end
end
"""
- When I run "rspec define_group_metadata_with_hash_spec.rb"
+ When I run `rspec define_group_metadata_with_hash_spec.rb`
Then the examples should all pass
Scenario: define example metadata using a hash
@@ -61,7 +61,7 @@ Feature: User-defined metadata
end
end
"""
- When I run "rspec define_example_metadata_with_hash_spec.rb"
+ When I run `rspec define_example_metadata_with_hash_spec.rb`
Then the examples should all pass
Scenario: override user-defined metadata
@@ -79,7 +79,7 @@ Feature: User-defined metadata
end
end
"""
- When I run "rspec override_metadata_spec.rb"
+ When I run `rspec override_metadata_spec.rb`
Then the examples should all pass
Scenario: less verbose metadata
@@ -107,5 +107,5 @@ Feature: User-defined metadata
end
end
"""
- When I run "rspec less_verbose_metadata_spec.rb"
+ When I run `rspec less_verbose_metadata_spec.rb`
Then the examples should all pass
View
2  features/mock_framework_integration/use_any_framework.feature
@@ -100,7 +100,7 @@ Feature: mock with an alternative framework
end
end
"""
- When I run "rspec example_spec.rb --format doc"
+ When I run `rspec example_spec.rb --format doc`
Then the exit status should be 1
And the output should contain "2 examples, 1 failure"
And the output should contain "fails when message is received (FAILED - 1)"
View
2  features/mock_framework_integration/use_flexmock.feature
@@ -18,5 +18,5 @@ Feature: mock with flexmock
end
end
"""
- When I run "rspec ./flexmock_example_spec.rb"
+ When I run `rspec ./flexmock_example_spec.rb`
Then the examples should all pass
View
2  features/mock_framework_integration/use_mocha.feature
@@ -18,5 +18,5 @@ Feature: mock with mocha
end
end
"""
- When I run "rspec ./mocha_example_spec.rb"
+ When I run `rspec ./mocha_example_spec.rb`
Then the examples should all pass
View
2  features/mock_framework_integration/use_rr.feature
@@ -19,5 +19,5 @@ Feature: mock with rr
end
end
"""
- When I run "rspec rr_example_spec.rb"
+ When I run `rspec rr_example_spec.rb`
Then the examples should all pass
View
2  features/mock_framework_integration/use_rspec.feature
@@ -18,5 +18,5 @@ Feature: mock with rspec
end
end
"""
- When I run "rspec ./rspec_example_spec.rb"
+ When I run `rspec ./rspec_example_spec.rb`
Then the examples should all pass
View
16 features/pending/pending_examples.feature
@@ -10,7 +10,7 @@ Feature: pending examples
it "is a pending example"
end
"""
- When I run "rspec example_without_block_spec.rb"
+ When I run `rspec example_without_block_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures, 1 pending"
And the output should contain "Not Yet Implemented"
@@ -26,7 +26,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_without_block_spec.rb"
+ When I run `rspec pending_without_block_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures, 1 pending"
And the output should contain:
@@ -48,7 +48,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_with_failing_block_spec.rb"
+ When I run `rspec pending_with_failing_block_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures, 1 pending"
And the output should contain:
@@ -70,7 +70,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_with_passing_block_spec.rb"
+ When I run `rspec pending_with_passing_block_spec.rb`
Then the exit status should not be 0
And the output should contain "1 example, 1 failure"
And the output should contain "FIXED"
@@ -86,7 +86,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_with_xit_spec.rb"
+ When I run `rspec pending_with_xit_spec.rb`
Then the exit status should be 0
And the output should contain "1 example, 0 failures, 1 pending"
And the output should contain:
@@ -107,7 +107,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_with_no_docstring_spec.rb --format documentation"
+ When I run `rspec pending_with_no_docstring_spec.rb --format documentation`
Then the exit status should be 0
And the output should contain "2 examples, 0 failures, 1 pending"
And the output should contain:
@@ -129,7 +129,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec pending_with_no_docstring_spec.rb --format documentation"
+ When I run `rspec pending_with_no_docstring_spec.rb --format documentation`
Then the exit status should be 0
And the output should contain "2 examples, 0 failures, 1 pending"
And the output should contain:
@@ -182,7 +182,7 @@ Feature: pending examples
end
end
"""
- When I run "rspec ./conditionally_pending_spec.rb"
+ When I run `rspec ./conditionally_pending_spec.rb`
Then the output should contain "8 examples, 4 failures, 2 pending"
And the output should contain:
"""
View
2  features/spec_files/arbitrary_file_suffix.feature
@@ -9,5 +9,5 @@ Feature: arbitrary file suffix
end
end
"""
- When I run "rspec a.spec"
+ When I run `rspec a.spec`
Then the examples should all pass
View
6 features/step_definitions/additional_cli_steps.rb
@@ -6,7 +6,7 @@
Then /^the output should not contain any of these:$/ do |table|
table.raw.flatten.each do |string|
- combined_output.should_not =~ compile_and_escape(string)
+ all_output.should_not =~ regexp(string)
end
end
@@ -22,9 +22,9 @@
Then /^the backtrace\-normalized output should contain:$/ do |partial_output|
# ruby 1.9 includes additional stuff in the backtrace,
# so we need to normalize it to compare it with our expected output.
- normalized_output = combined_output.split("\n").map do |line|
+ normalized_output = all_output.split("\n").map do |line|
line =~ /(^\s+# [^:]+:\d+)/ ? $1 : line # http://rubular.com/r/zDD7DdWyzF
end.join("\n")
- normalized_output.should =~ compile_and_escape(partial_output)
+ normalized_output.should =~ regexp(partial_output)
end
View
10 features/subject/attribute_of_subject.feature
@@ -28,7 +28,7 @@ Feature: attribute of subject
end
end
"""
- When I run "rspec example_spec.rb --format documentation"
+ When I run `rspec example_spec.rb --format documentation`
Then the output should contain:
"""
Array
@@ -59,7 +59,7 @@ Feature: attribute of subject
end
end
"""
- When I run "rspec example_spec.rb --format documentation"
+ When I run `rspec example_spec.rb --format documentation`
Then the output should contain:
"""
Person
@@ -81,7 +81,7 @@ Feature: attribute of subject
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
Scenario: specify value for key in a hash
@@ -98,7 +98,7 @@ Feature: attribute of subject
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
Scenario: specify value for key in a hash-like object
@@ -118,5 +118,5 @@ Feature: attribute of subject
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
View
10 features/subject/explicit_subject.feature
@@ -13,7 +13,7 @@ Feature: explicit subject
end
end
"""
- When I run "rspec top_level_subject_spec.rb"
+ When I run `rspec top_level_subject_spec.rb`
Then the examples should all pass
Scenario: subject in a nested group
@@ -28,7 +28,7 @@ Feature: explicit subject
end
end
"""
- When I run "rspec nested_subject_spec.rb"
+ When I run `rspec nested_subject_spec.rb`
Then the examples should all pass
Scenario: access subject from before block
@@ -42,7 +42,7 @@ Feature: explicit subject
end
end
"""
- When I run "rspec top_level_subject_spec.rb"
+ When I run `rspec top_level_subject_spec.rb`
Then the examples should all pass
Scenario: invoke helper method from subject block
@@ -58,7 +58,7 @@ Feature: explicit subject
end
end
"""
- When I run "rspec helper_subject_spec.rb"
+ When I run `rspec helper_subject_spec.rb`
Then the examples should all pass
Scenario: subject block is invoked at most once per example
@@ -74,5 +74,5 @@ Feature: explicit subject
end
end
"""
- When I run "rspec nil_subject_spec.rb"
+ When I run `rspec nil_subject_spec.rb`
Then the examples should all pass
View
4 features/subject/implicit_receiver.feature
@@ -12,7 +12,7 @@ Feature: implicit receiver
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
Scenario: explicit subject
@@ -25,5 +25,5 @@ Feature: implicit receiver
end
end
"""
- When I run "rspec example_spec.rb"
+ When I run `rspec example_spec.rb`
Then the examples should all pass
View
4 features/subject/implicit_subject.feature
@@ -12,7 +12,7 @@ Feature: implicit subject
end
end
"""
- When I run "rspec ./top_level_subject_spec.rb"
+ When I run `rspec ./top_level_subject_spec.rb`
Then the examples should all pass
Scenario: subject in a nested group
@@ -26,5 +26,5 @@ Feature: implicit subject
end
end
"""
- When I run "rspec nested_subject_spec.rb"
+ When I run `rspec nested_subject_spec.rb`
Then the examples should all pass
View
7 features/support/env.rb
@@ -1 +1,6 @@
-require 'aruba'
+require 'aruba/cucumber'
+
+Before do
+ @aruba_timeout_seconds = 3
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.