Skip to content

Commit 9ca9059

Browse files
committed
Merge pull request rspec#1439 from jamelablack/regex_bug_fix
Bug fix: removed spaces in regex
2 parents f1641c7 + f36d42a commit 9ca9059

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Bug Fixes:
55

66
* Fix another load order issued which causes an undefined method `fixture_path` error
77
when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)
8+
* Removed incorrect surrounding whitespace in the rspec-rails backtrace
9+
exclusion pattern for its own `lib` code. (Jam Black, #1439)
810

911
### 3.3.3 / 2015-07-15
1012
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)

lib/rspec/rails/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Configuration
3939
# @private
4040
def self.initialize_configuration(config)
4141
config.backtrace_exclusion_patterns << /vendor\//
42-
config.backtrace_exclusion_patterns << %r{ lib/rspec/rails }
42+
config.backtrace_exclusion_patterns << %r{lib/rspec/rails}
4343

4444
# controller settings
4545
config.add_setting :infer_base_class_for_anonymous_controllers, :default => true

spec/rspec/rails/configuration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
it "adds 'lib/rspec/rails' to the backtrace exclusions" do
1919
expect(
2020
config.backtrace_exclusion_patterns
21-
).to include(%r{ lib/rspec/rails })
21+
).to include(%r{lib/rspec/rails})
2222
end
2323

2424
shared_examples_for "adds setting" do |accessor, opts|

0 commit comments

Comments
 (0)