Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back Ruby 2.2 support for Rails 5 (#2332)
* Add extra debugging tool for specs expected to pass * Add back Ruby 2.2 support for Rails 5
- Loading branch information
Showing
8 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module RSpec::Rails::TestSupport | ||
class FailureReporter | ||
def initialize | ||
@exceptions = [] | ||
end | ||
attr_reader :exceptions | ||
|
||
def example_failed(example) | ||
@exceptions << example.exception | ||
end | ||
|
||
def method_missing(name, *_args, &_block) | ||
end | ||
end | ||
|
||
def failure_reporter | ||
@failure_reporter ||= FailureReporter.new | ||
end | ||
end | ||
|
||
RSpec.configure do |config| | ||
config.include RSpec::Rails::TestSupport | ||
end |