rspec-core 2.11.1 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. data/Changelog.md +59 -0
  2. data/README.md +22 -0
  3. data/features/command_line/example_name_option.feature +5 -5
  4. data/features/command_line/exit_status.feature +6 -6
  5. data/features/command_line/format_option.feature +2 -2
  6. data/features/command_line/line_number_appended_to_path.feature +2 -2
  7. data/features/command_line/line_number_option.feature +2 -2
  8. data/features/command_line/pattern_option.feature +2 -2
  9. data/features/command_line/rake_task.feature +62 -8
  10. data/features/command_line/ruby.feature +1 -1
  11. data/features/command_line/tag.feature +1 -1
  12. data/features/configuration/alias_example_to.feature +2 -2
  13. data/features/configuration/custom_settings.feature +3 -3
  14. data/features/configuration/default_path.feature +3 -3
  15. data/features/configuration/fail_fast.feature +5 -5
  16. data/features/configuration/read_options_from_file.feature +4 -4
  17. data/features/example_groups/basic_structure.feature +2 -2
  18. data/features/example_groups/shared_context.feature +3 -3
  19. data/features/example_groups/shared_examples.feature +25 -7
  20. data/features/expectation_framework_integration/configure_expectation_framework.feature +6 -6
  21. data/features/filtering/exclusion_filters.feature +5 -5
  22. data/features/filtering/if_and_unless.feature +5 -5
  23. data/features/filtering/inclusion_filters.feature +5 -5
  24. data/features/filtering/run_all_when_everything_filtered.feature +3 -3
  25. data/features/formatters/custom_formatter.feature +2 -2
  26. data/features/formatters/json_formatter.feature +30 -0
  27. data/features/formatters/text_formatter.feature +5 -5
  28. data/features/helper_methods/arbitrary_methods.feature +2 -2
  29. data/features/helper_methods/let.feature +2 -2
  30. data/features/helper_methods/modules.feature +6 -6
  31. data/features/hooks/around_hooks.feature +11 -11
  32. data/features/hooks/before_and_after_hooks.feature +15 -11
  33. data/features/hooks/filtering.feature +6 -6
  34. data/features/metadata/current_example.feature +1 -1
  35. data/features/metadata/described_class.feature +1 -1
  36. data/features/metadata/user_defined.feature +4 -4
  37. data/features/mock_framework_integration/use_any_framework.feature +6 -6
  38. data/features/mock_framework_integration/use_flexmock.feature +5 -5
  39. data/features/mock_framework_integration/use_mocha.feature +5 -5
  40. data/features/mock_framework_integration/use_rr.feature +5 -5
  41. data/features/mock_framework_integration/use_rspec.feature +5 -5
  42. data/features/pending/pending_examples.feature +11 -11
  43. data/features/spec_files/arbitrary_file_suffix.feature +1 -1
  44. data/features/step_definitions/additional_cli_steps.rb +2 -0
  45. data/features/subject/attribute_of_subject.feature +5 -5
  46. data/features/subject/explicit_subject.feature +5 -5
  47. data/features/subject/implicit_receiver.feature +2 -2
  48. data/features/subject/implicit_subject.feature +3 -3
  49. data/lib/autotest/rspec2.rb +1 -1
  50. data/lib/rspec/core.rb +53 -32
  51. data/lib/rspec/core/configuration.rb +123 -15
  52. data/lib/rspec/core/configuration_options.rb +17 -2
  53. data/lib/rspec/core/example.rb +5 -4
  54. data/lib/rspec/core/example_group.rb +19 -9
  55. data/lib/rspec/core/extensions/ordered.rb +12 -6
  56. data/lib/rspec/core/formatters.rb +55 -0
  57. data/lib/rspec/core/formatters/base_formatter.rb +43 -38
  58. data/lib/rspec/core/formatters/base_text_formatter.rb +9 -5
  59. data/lib/rspec/core/formatters/documentation_formatter.rb +1 -1
  60. data/lib/rspec/core/formatters/helpers.rb +30 -5
  61. data/lib/rspec/core/formatters/html_formatter.rb +58 -368
  62. data/lib/rspec/core/formatters/html_printer.rb +407 -0
  63. data/lib/rspec/core/formatters/json_formatter.rb +73 -0
  64. data/lib/rspec/core/formatters/snippet_extractor.rb +3 -1
  65. data/lib/rspec/core/hooks.rb +4 -4
  66. data/lib/rspec/core/metadata.rb +14 -6
  67. data/lib/rspec/core/mocking/with_mocha.rb +25 -2
  68. data/lib/rspec/core/mocking/with_rspec.rb +6 -2
  69. data/lib/rspec/core/option_parser.rb +28 -7
  70. data/lib/rspec/core/project_initializer.rb +0 -1
  71. data/lib/rspec/core/rake_task.rb +49 -38
  72. data/lib/rspec/core/reporter.rb +2 -2
  73. data/lib/rspec/core/shared_example_group.rb +89 -41
  74. data/lib/rspec/core/subject.rb +6 -2
  75. data/lib/rspec/core/version.rb +1 -1
  76. data/lib/rspec/core/world.rb +2 -2
  77. data/spec/autotest/rspec_spec.rb +6 -1
  78. data/spec/command_line/order_spec.rb +67 -0
  79. data/spec/rspec/core/configuration_options_spec.rb +45 -38
  80. data/spec/rspec/core/configuration_spec.rb +219 -44
  81. data/spec/rspec/core/deprecations_spec.rb +9 -0
  82. data/spec/rspec/core/drb_command_line_spec.rb +1 -7
  83. data/spec/rspec/core/drb_options_spec.rb +1 -1
  84. data/spec/rspec/core/dsl_spec.rb +17 -9
  85. data/spec/rspec/core/example_group_spec.rb +51 -5
  86. data/spec/rspec/core/example_spec.rb +39 -7
  87. data/spec/rspec/core/filter_manager_spec.rb +20 -30
  88. data/spec/rspec/core/formatters/base_formatter_spec.rb +29 -1
  89. data/spec/rspec/core/formatters/base_text_formatter_spec.rb +6 -2
  90. data/spec/rspec/core/formatters/helpers_spec.rb +12 -0
  91. data/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +462 -0
  92. data/spec/rspec/core/formatters/html_formatted-1.9.2-jruby.html +410 -0
  93. data/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +462 -0
  94. data/spec/rspec/core/formatters/html_formatter_spec.rb +11 -3
  95. data/spec/rspec/core/formatters/json_formatter_spec.rb +110 -0
  96. data/spec/rspec/core/formatters/snippet_extractor_spec.rb +8 -0
  97. data/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +462 -0
  98. data/spec/rspec/core/formatters/text_mate_formatted-1.9.2-jruby.html +410 -0
  99. data/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +462 -0
  100. data/spec/rspec/core/formatters/text_mate_formatter_spec.rb +11 -3
  101. data/spec/rspec/core/hooks_filtering_spec.rb +6 -6
  102. data/spec/rspec/core/metadata_spec.rb +29 -0
  103. data/spec/rspec/core/option_parser_spec.rb +42 -0
  104. data/spec/rspec/core/project_initializer_spec.rb +2 -2
  105. data/spec/rspec/core/rake_task_spec.rb +60 -17
  106. data/spec/rspec/core/reporter_spec.rb +17 -0
  107. data/spec/rspec/core/runner_spec.rb +1 -0
  108. data/spec/rspec/core/shared_example_group_spec.rb +17 -5
  109. data/spec/rspec/core/subject_spec.rb +11 -0
  110. data/spec/spec_helper.rb +32 -2
  111. data/spec/support/config_options_helper.rb +1 -10
  112. data/spec/support/helper_methods.rb +13 -0
  113. data/spec/support/isolated_directory.rb +10 -0
  114. data/spec/support/isolated_home_directory.rb +16 -0
  115. metadata +145 -148
  116. data/lib/rspec/core/extensions.rb +0 -4
@@ -1,3 +1,62 @@
1
+ ### 2.12.0 / 2012-11-12
2
+ [full changelog](http://github.com/rspec/rspec-core/compare/v2.11.1...2.12.0)
3
+
4
+ Enhancements
5
+
6
+ * Add support for custom ordering strategies for groups and examples.
7
+ (Myron Marston)
8
+ * JSON Formatter (Alex Chaffee)
9
+ * Refactor rake task internals (Sam Phippen)
10
+ * Refactor HtmlFormatter (Pete Hodgson)
11
+ * Autotest supports a path to Ruby that contains spaces (dsisnero)
12
+ * Provide a helpful warning when a shared example group is redefined.
13
+ (Mark Burns).
14
+ * `--default_path` can be specified as `--default-line`. `--line_number` can be
15
+ specified as `--line-number`. Hyphens are more idiomatic command line argument
16
+ separators (Sam Phippen).
17
+ * A more useful error message is shown when an invalid command line option is
18
+ used (Jordi Polo).
19
+ * Add `format_docstrings { |str| }` config option. It can be used to
20
+ apply formatting rules to example group and example docstrings.
21
+ (Alex Tan)
22
+ * Add support for an `.rspec-local` options file. This is intended to
23
+ allow individual developers to set options in a git-ignored file that
24
+ override the common project options in `.rspec`. (Sam Phippen)
25
+ * Support for mocha 0.13.0. (Andy Lindeman)
26
+
27
+ Bug fixes
28
+
29
+ * Remove override of `ExampleGroup#ancestors`. This is a core ruby method that
30
+ RSpec shouldn't override. Instead, define `ExampleGroup#parent_groups`. (Myron
31
+ Marston)
32
+ * Limit monkey patching of shared example/context declaration methods
33
+ (`shared_examples_for`, etc.) to just the objects that need it rather than
34
+ every object in the system (Myron Marston).
35
+ * Fix Metadata#fetch to support computed values (Sam Goldman).
36
+ * Named subject can now be referred to from within subject block in a nested
37
+ group (tomykaira).
38
+ * Fix `fail_fast` so that it properly exits when an error occurs in a
39
+ `before(:all) hook` (Bradley Schaefer).
40
+ * Make the order spec files are loaded consistent, regardless of the
41
+ order of the files returned by the OS or the order passed at
42
+ the command line (Jo Liss and Sam Phippen).
43
+ * Ensure instance variables from `before(:all)` are always exposed
44
+ from `after(:all)`, even if an error occurs in `before(:all)`
45
+ (Sam Phippen).
46
+ * `rspec --init` no longer generates an incorrect warning about `--configure`
47
+ being deprecated (Sam Phippen).
48
+ * Fix pluralization of `1 seconds` (Odin Dutton)
49
+ * Fix ANSICON url (Jarmo Pertman)
50
+ * Use dup of Time so reporting isn't clobbered by examples that modify Time
51
+ without properly restoring it. (David Chelimsky)
52
+
53
+ Deprecations
54
+
55
+ * `share_as` is no longer needed. `shared_context` and/or
56
+ `RSpec::SharedContext` provide better mechanisms (Sam Phippen).
57
+ * Deprecate `RSpec.configuration` with a block (use `RSpec.configure`).
58
+
59
+
1
60
  ### 2.11.1 / 2012-07-18
2
61
  [full changelog](http://github.com/rspec/rspec-core/compare/v2.11.0...v2.11.1)
3
62
 
data/README.md CHANGED
@@ -167,6 +167,28 @@ the command line.
167
167
  rspec-core ships with an Autotest extension, which is loaded automatically if
168
168
  there is a `.rspec` file in the project's root directory.
169
169
 
170
+ ## rcov integration
171
+
172
+ rcov is best integrated via the [rcov rake
173
+ task](http://www.rubydoc.info/github/relevance/rcov/master/Rcov/RcovTask).
174
+
175
+ rcov can also be integrated via the rspec rake task, but it requires a bit
176
+ more setup:
177
+
178
+ ```ruby
179
+ # Rakefile
180
+ require 'rspec/core/rake_task'
181
+
182
+ RSpec::Core::RakeTask.new(:spec) do |config|
183
+ config.rcov = true
184
+ end
185
+
186
+ task :default => :spec
187
+
188
+ # spec/spec_helper.rb
189
+ require 'rspec/autorun' # **add this**
190
+ ```
191
+
170
192
  ## get started
171
193
 
172
194
  Start with a simple example of behavior you expect from your system. Do
@@ -13,21 +13,21 @@ Feature: --example option
13
13
 
14
14
  Background:
15
15
  Given a file named "first_spec.rb" with:
16
- """
16
+ """ruby
17
17
  describe "first group" do
18
18
  it "first example in first group" do; end
19
19
  it "second example in first group" do; end
20
20
  end
21
21
  """
22
22
  And a file named "second_spec.rb" with:
23
- """
23
+ """ruby
24
24
  describe "second group" do
25
25
  it "first example in second group" do; end
26
26
  it "second example in second group" do; end
27
27
  end
28
28
  """
29
29
  And a file named "third_spec.rb" with:
30
- """
30
+ """ruby
31
31
  describe "third group" do
32
32
  it "first example in third group" do; end
33
33
  context "nested group" do
@@ -37,7 +37,7 @@ Feature: --example option
37
37
  end
38
38
  """
39
39
  And a file named "fourth_spec.rb" with:
40
- """
40
+ """ruby
41
41
  describe Array do
42
42
  describe "#length" do
43
43
  it "is the number of items" do
@@ -98,4 +98,4 @@ Feature: --example option
98
98
  And the output should not contain any of these:
99
99
  |first example in third group|
100
100
  |nested group first example in nested group|
101
- |nested group second example in nested group|
101
+ |nested group second example in nested group|
@@ -6,7 +6,7 @@ Feature: exit status
6
6
 
7
7
  Scenario: exit with 0 when all examples pass
8
8
  Given a file named "ok_spec.rb" with:
9
- """
9
+ """ruby
10
10
  describe "ok" do
11
11
  it "passes" do
12
12
  end
@@ -18,7 +18,7 @@ Feature: exit status
18
18
 
19
19
  Scenario: exit with 1 when one example fails
20
20
  Given a file named "ko_spec.rb" with:
21
- """
21
+ """ruby
22
22
  describe "KO" do
23
23
  it "fails" do
24
24
  raise "KO"
@@ -31,7 +31,7 @@ Feature: exit status
31
31
 
32
32
  Scenario: exit with 1 when a nested examples fails
33
33
  Given a file named "nested_ko_spec.rb" with:
34
- """
34
+ """ruby
35
35
  describe "KO" do
36
36
  describe "nested" do
37
37
  it "fails" do
@@ -46,7 +46,7 @@ Feature: exit status
46
46
 
47
47
  Scenario: exit with 0 when no examples are run
48
48
  Given a file named "a_no_examples_spec.rb" with:
49
- """
49
+ """ruby
50
50
  """
51
51
  When I run `rspec a_no_examples_spec.rb`
52
52
  Then the exit status should be 0
@@ -54,7 +54,7 @@ Feature: exit status
54
54
 
55
55
  Scenario: exit with 2 when one example fails and --failure-exit-code is 2
56
56
  Given a file named "ko_spec.rb" with:
57
- """
57
+ """ruby
58
58
  describe "KO" do
59
59
  it "fails" do
60
60
  raise "KO"
@@ -68,7 +68,7 @@ Feature: exit status
68
68
  @wip
69
69
  Scenario: exit with rspec's exit code when an at_exit hook is added upstream
70
70
  Given a file named "exit_at_spec.rb" with:
71
- """
71
+ """ruby
72
72
  require 'rspec/autorun'
73
73
 
74
74
  describe "exit 0 at_exit" do
@@ -17,7 +17,7 @@ Feature: --format option
17
17
  You can also specify an output target (STDOUT by default) by appending a
18
18
  filename to the argument:
19
19
 
20
- $ rspec spec --format documentation:rspec.output.txt
20
+ $ rspec spec --format documentation --out rspec.txt
21
21
 
22
22
  `rspec --help` lists available formatters:
23
23
 
@@ -29,7 +29,7 @@ Feature: --format option
29
29
 
30
30
  Background:
31
31
  Given a file named "example_spec.rb" with:
32
- """
32
+ """ruby
33
33
  describe "something" do
34
34
  it "does something that passes" do
35
35
  5.should eq(5)
@@ -6,7 +6,7 @@ Feature: line number appended to file path
6
6
 
7
7
  Background:
8
8
  Given a file named "example_spec.rb" with:
9
- """
9
+ """ruby
10
10
  describe "outer group" do
11
11
 
12
12
  it "first example in outer group" do
@@ -28,7 +28,7 @@ Feature: line number appended to file path
28
28
  end
29
29
  """
30
30
  And a file named "example2_spec.rb" with:
31
- """
31
+ """ruby
32
32
  describe "yet another group" do
33
33
  it "first example in second file" do
34
34
  end
@@ -8,7 +8,7 @@ Feature: --line_number option
8
8
 
9
9
  Scenario: standard examples
10
10
  Given a file named "example_spec.rb" with:
11
- """
11
+ """ruby
12
12
  require "rspec/expectations"
13
13
 
14
14
  describe 9 do
@@ -41,7 +41,7 @@ Feature: --line_number option
41
41
 
42
42
  Scenario: one liner
43
43
  Given a file named "example_spec.rb" with:
44
- """
44
+ """ruby
45
45
  require "rspec/expectations"
46
46
 
47
47
  describe 9 do
@@ -8,7 +8,7 @@ Feature: pattern option
8
8
 
9
9
  Scenario: default pattern
10
10
  Given a file named "spec/example_spec.rb" with:
11
- """
11
+ """ruby
12
12
  describe "addition" do
13
13
  it "adds things" do
14
14
  (1 + 2).should eq(3)
@@ -20,7 +20,7 @@ Feature: pattern option
20
20
 
21
21
  Scenario: override the default pattern on the command line
22
22
  Given a file named "spec/example.spec" with:
23
- """
23
+ """ruby
24
24
  describe "addition" do
25
25
  it "adds things" do
26
26
  (1 + 2).should eq(3)
@@ -4,7 +4,7 @@ Feature: rake task
4
4
 
5
5
  Scenario: default options with passing spec (prints command and exit status is 0)
6
6
  Given a file named "Rakefile" with:
7
- """
7
+ """ruby
8
8
  require 'rspec/core/rake_task'
9
9
 
10
10
  RSpec::Core::RakeTask.new(:spec)
@@ -12,7 +12,7 @@ Feature: rake task
12
12
  task :default => :spec
13
13
  """
14
14
  And a file named "spec/thing_spec.rb" with:
15
- """
15
+ """ruby
16
16
  describe "something" do
17
17
  it "does something" do
18
18
  # pass
@@ -20,12 +20,12 @@ Feature: rake task
20
20
  end
21
21
  """
22
22
  When I run `rake`
23
- Then the output should contain "ruby -S rspec"
23
+ Then the output should match /(ruby|rbx) -S rspec/
24
24
  Then the exit status should be 0
25
25
 
26
26
  Scenario: default options with failing spec (exit status is 1)
27
27
  Given a file named "Rakefile" with:
28
- """
28
+ """ruby
29
29
  require 'rspec/core/rake_task'
30
30
 
31
31
  RSpec::Core::RakeTask.new(:spec)
@@ -33,7 +33,7 @@ Feature: rake task
33
33
  task :default => :spec
34
34
  """
35
35
  And a file named "spec/thing_spec.rb" with:
36
- """
36
+ """ruby
37
37
  describe "something" do
38
38
  it "does something" do
39
39
  fail
@@ -45,7 +45,7 @@ Feature: rake task
45
45
 
46
46
  Scenario: fail_on_error = false with failing spec (exit status is 0)
47
47
  Given a file named "Rakefile" with:
48
- """
48
+ """ruby
49
49
  require 'rspec/core/rake_task'
50
50
 
51
51
  RSpec::Core::RakeTask.new(:spec) do |t|
@@ -55,7 +55,7 @@ Feature: rake task
55
55
  task :default => :spec
56
56
  """
57
57
  And a file named "spec/thing_spec.rb" with:
58
- """
58
+ """ruby
59
59
  describe "something" do
60
60
  it "does something" do
61
61
  fail
@@ -64,5 +64,59 @@ Feature: rake task
64
64
  """
65
65
  When I run `rake`
66
66
  Then the exit status should be 0
67
-
68
67
 
68
+ Scenario: rspec_opts is specified in order to pass args to the rspec command
69
+ Given a file named "Rakefile" with:
70
+ """ruby
71
+ require 'rspec/core/rake_task'
72
+
73
+ RSpec::Core::RakeTask.new(:spec) do |t|
74
+ t.rspec_opts = "--tag fast"
75
+ end
76
+ """
77
+ And a file named "spec/thing_spec.rb" with:
78
+ """ruby
79
+ describe "something" do
80
+ it "has a tag", :fast => true do
81
+ # pass
82
+ end
83
+
84
+ it "does not have a tag" do
85
+ fail
86
+ end
87
+ end
88
+ """
89
+ When I run `rake spec`
90
+ Then the exit status should be 0
91
+ Then the output should match:
92
+ """
93
+ (ruby|rbx) -S rspec ./spec/thing_spec.rb --tag fast
94
+ """
95
+
96
+ Scenario: rspec_opts is specified using arguments to the rake task
97
+ Given a file named "Rakefile" with:
98
+ """ruby
99
+ require 'rspec/core/rake_task'
100
+
101
+ RSpec::Core::RakeTask.new(:spec, :tag) do |t, task_args|
102
+ t.rspec_opts = "--tag #{task_args[:tag]}"
103
+ end
104
+ """
105
+ And a file named "spec/thing_spec.rb" with:
106
+ """ruby
107
+ describe "something" do
108
+ it "has a tag", :fast => true do
109
+ # pass
110
+ end
111
+
112
+ it "does not have a tag" do
113
+ fail
114
+ end
115
+ end
116
+ """
117
+ When I run `rake spec[fast]`
118
+ Then the exit status should be 0
119
+ Then the output should match:
120
+ """
121
+ (ruby|rbx) -S rspec ./spec/thing_spec.rb --tag fast
122
+ """
@@ -9,7 +9,7 @@ Feature: run with ruby command
9
9
 
10
10
  Scenario:
11
11
  Given a file named "example_spec.rb" with:
12
- """
12
+ """ruby
13
13
  require 'rspec/autorun'
14
14
 
15
15
  describe 1 do
@@ -16,7 +16,7 @@ Feature: --tag option
16
16
 
17
17
  Background:
18
18
  Given a file named "tagged_spec.rb" with:
19
- """
19
+ """ruby
20
20
  describe "group with tagged specs" do
21
21
  it "example I'm working now", :focus => true do; end
22
22
  it "special example with string", :type => 'special' do; end
@@ -8,7 +8,7 @@ Feature: alias_example_to
8
8
 
9
9
  Scenario: Use alias_example_to to define focused example
10
10
  Given a file named "alias_example_to_spec.rb" with:
11
- """
11
+ """ruby
12
12
  RSpec.configure do |c|
13
13
  c.alias_example_to :fit, :focused => true
14
14
  c.filter_run :focused => true
@@ -28,7 +28,7 @@ Feature: alias_example_to
28
28
 
29
29
  Scenario: use symbols as metadata
30
30
  Given a file named "use_symbols_as_metadata_spec.rb" with:
31
- """
31
+ """ruby
32
32
  RSpec.configure do |c|
33
33
  c.treat_symbols_as_metadata_keys_with_true_values = true
34
34
  c.alias_example_to :fit, :focused
@@ -4,7 +4,7 @@ Feature: custom settings
4
4
 
5
5
  Scenario: simple setting (with defaults)
6
6
  Given a file named "additional_setting_spec.rb" with:
7
- """
7
+ """ruby
8
8
  RSpec.configure do |c|
9
9
  c.add_setting :custom_setting
10
10
  end
@@ -34,7 +34,7 @@ Feature: custom settings
34
34
 
35
35
  Scenario: default to true
36
36
  Given a file named "additional_setting_spec.rb" with:
37
- """
37
+ """ruby
38
38
  RSpec.configure do |c|
39
39
  c.add_setting :custom_setting, :default => true
40
40
  end
@@ -60,7 +60,7 @@ Feature: custom settings
60
60
 
61
61
  Scenario: overridden in a subsequent RSpec.configure block
62
62
  Given a file named "additional_setting_spec.rb" with:
63
- """
63
+ """ruby
64
64
  RSpec.configure do |c|
65
65
  c.add_setting :custom_setting
66
66
  end
@@ -13,7 +13,7 @@ Feature: default_path
13
13
 
14
14
  Scenario: run `rspec` with default default_path (`spec` directory)
15
15
  Given a file named "spec/example_spec.rb" with:
16
- """
16
+ """ruby
17
17
  describe "an example" do
18
18
  it "passes" do
19
19
  end
@@ -21,14 +21,14 @@ Feature: default_path
21
21
  """
22
22
  When I run `rspec`
23
23
  Then the output should contain "1 example, 0 failures"
24
-
24
+
25
25
  Scenario: run `rspec` with customized default_path
26
26
  Given a file named ".rspec" with:
27
27
  """
28
28
  --default_path behavior
29
29
  """
30
30
  Given a file named "behavior/example_spec.rb" with:
31
- """
31
+ """ruby
32
32
  describe "an example" do
33
33
  it "passes" do
34
34
  end