Skip to content

Commit b45312a

Browse files
authored
Merge branch 'main' into rails-6-1-dev
2 parents 5874755 + 483e487 commit b45312a

18 files changed

+48
-44
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This file was generated on 2019-12-05T21:32:23+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

4-
github: [JonRowe]
4+
github: [JonRowe, benoittgt]
55
open_collective: rspec

.rspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
--warnings
2-
--color
32
--require spec_helper

BUILD_DETAIL.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2019-12-05T21:32:23+00:00 from the rspec-dev repo.
2+
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

@@ -112,22 +112,23 @@ $ bundle exec yard doc --no-cache
112112
$ bin/yard doc --no-cache
113113
```
114114

115-
## Rubocop
115+
## RuboCop
116116

117-
We use [Rubocop](https://github.com/rubocop-hq/rubocop) to enforce style conventions on the project so
118-
that the code has stylistic consistency throughout. Run with:
117+
We use [RuboCop](https://github.com/rubocop-hq/rubocop) to enforce style
118+
conventions on the project so that the code has stylistic consistency
119+
throughout. Run with:
119120

120121
```
121-
$ bundle exec rubocop
122+
$ bundle exec rubocop lib
122123
123124
# or, if you installed your bundle with `--standalone --binstubs`:
124125
125-
$ bin/rubocop
126+
$ bin/rubocop lib
126127
```
127128

128-
Our Rubocop configuration is a work-in-progress, so if you get a failure
129-
due to a Rubocop default, feel free to ask about changing the
130-
configuration. Otherwise, you'll need to address the Rubocop failure,
129+
Our RuboCop configuration is a work-in-progress, so if you get a failure
130+
due to a RuboCop default, feel free to ask about changing the
131+
configuration. Otherwise, you'll need to address the RuboCop failure,
131132
or, as a measure of last resort, by wrapping the offending code in
132133
comments like `# rubocop:disable SomeCheck` and `# rubocop:enable SomeCheck`.
133134

@@ -161,4 +162,3 @@ build for another repo, so our CI build includes a spec that runs the
161162
spec suite of each of the _other_ project repos. Note that we only run
162163
the spec suite, not the full build, of the other projects, as the spec
163164
suite runs very quickly compared to the full build.
164-

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2019-12-05T21:32:23+00:00 from the rspec-dev repo.
2+
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2019-12-05T21:32:23+00:00 from the rspec-dev repo.
2+
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

Changelog.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
### Rails 6.1 Development
2-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/main...rails-6-1-dev)
1+
### Development
2+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.0...main)
33

44
* Support new #file_fixture_path and new fixture test support code. (Jon Rowe, #2398)
5+
* Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more #2398)
56

6-
Bug Fixes:
7-
8-
* Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
9-
Rails. (Benoit Tigeot, #2461)
10-
11-
### Development
12-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...main)
7+
### 4.1.0 / 2021-03-06
138

149
Enhancements:
1510

@@ -22,6 +17,11 @@ Enhancements:
2217
* Improve request spec "controller" scafold when no action is specified.
2318
(Thomas Hareau, #2399)
2419
* Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #2423)
20+
* Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
21+
Rails. (Benoit Tigeot, #2461)
22+
23+
### 4.0.2 / 2020-12-26
24+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
2525

2626
Bug Fixes:
2727

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2019-12-05T21:32:23+00:00 from the rspec-dev repo.
2+
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'yard', '~> 0.9.24', require: false
88

99
group :documentation do
1010
gem 'github-markup', '~> 3.0.3'
11-
gem 'redcarpet', '~> 3.4.0', platforms: [:ruby]
11+
gem 'redcarpet', '~> 3.5.1', platforms: [:ruby]
1212
gem 'relish', '~> 0.7.1'
1313
end
1414

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rspec-rails [![Build Status][]][travis-ci] [![Code Climate][]][code-climate] [![Gem Version][]](gem-version)
1+
# rspec-rails [![Code Climate][]][code-climate] [![Gem Version][]][gem-version]
22

33
`rspec-rails` brings the [RSpec][] testing framework to [Ruby on Rails][]
44
as a drop-in alternative to its default testing framework, Minitest.
@@ -25,15 +25,15 @@ Use **[`rspec-rails` 1.x][]** for Rails 2.x.
2525
## Installation
2626

2727
**IMPORTANT** This README / branch refers to the current development build.
28-
See the `4-0-maintenance` branch on Github if you want or require the latest stable release.
28+
See the [`4-1-maintenance` branch on Github](https://github.com/rspec/rspec-rails/tree/4-0-maintenance) if you want or require the latest stable release.
2929

3030
1. Add `rspec-rails` to **both** the `:development` and `:test` groups
3131
of your app’s `Gemfile`:
3232

3333
```ruby
3434
# Run against the latest stable release
3535
group :development, :test do
36-
gem 'rspec-rails', '~> 4.0.1'
36+
gem 'rspec-rails', '~> 4.1.0'
3737
end
3838

3939
# Or, run against the main branch

lib/rspec/rails/extensions/active_record/proxy.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
RSpec.configure do |rspec|
22
# Delay this in order to give users a chance to configure `expect_with`...
33
rspec.before(:suite) do
4-
if defined?(RSpec::Matchers) && RSpec::Matchers.configuration.syntax.include?(:should) && defined?(ActiveRecord::Associations)
4+
if defined?(RSpec::Matchers) &&
5+
RSpec::Matchers.configuration.respond_to?(:syntax) && # RSpec 4 dropped support for monkey-patching `should` syntax
6+
RSpec::Matchers.configuration.syntax.include?(:should) &&
7+
defined?(ActiveRecord::Associations)
58
RSpec::Matchers.configuration.add_should_and_should_not_to ActiveRecord::Associations::CollectionProxy
69
end
710
end

0 commit comments

Comments
 (0)