-
-
Notifications
You must be signed in to change notification settings - Fork 285
Add an RSpec 4 pre-release CI job #1322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --require spec_helper | ||
| --color | ||
| --format documentation | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ | |
| end | ||
|
|
||
| it_behaves_like :something | ||
| it_should_behave_like :something | ||
| it_should_behave_like :something if RSpec::Core::Version::STRING < '4.0' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we not only parse those weird specs, but also actually run them with |
||
|
|
||
| it_behaves_like :something do | ||
| let(:foo) { 'bar' } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,11 +24,7 @@ module SpecHelper | |
| config.order = :random | ||
|
|
||
| # Run focused tests with `fdescribe`, `fit`, `:focus` etc. | ||
| config.filter_run focus: true | ||
| config.run_all_when_everything_filtered = true | ||
|
Comment on lines
-27
to
-28
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| # Forbid RSpec from monkey patching any of our objects | ||
| config.disable_monkey_patching! | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| config.filter_run_when_matching :focus | ||
|
|
||
| # We should address configuration warnings when we upgrade | ||
| config.raise_errors_for_deprecations! | ||
|
|
@@ -38,6 +34,10 @@ module SpecHelper | |
| config.raise_on_warning = true | ||
|
|
||
| config.include(ExpectOffense) | ||
|
|
||
| config.include_context 'with default RSpec/Language config', :config | ||
| config.include_context 'config', :config | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After this PR is merged (and released, and we bump our |
||
| config.include_context 'smoke test', type: :cop_spec | ||
| end | ||
|
|
||
| $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rspec/rspec-core@0407831