-
-
We have the following code:
```ruby
File.join(File.join(Rails.root, 'app', 'models'), 'user.rb')
```
## Expected behavior
```ruby
File.join(Rails.root.join('app', 'models').to_s, 'user.rb')
…
-
Rubocop complains when there is too many expectations but says nothing when we have `it` with some code not including any `expect`s. Maybe there is some sense to implement such rule?
-
When someone uses `stub_const('Foo::BAZ', 42)`, all other constants (and methods) defined in Foo may be lost. This is explained in https://github.com/rspec/rspec-mocks/issues/1079. I've lost couple of…
-
```
What is the problem?
When weapons are confiscated, they just go away, and can't be used by the
officer.
What steps will reproduce the problem?
Confiscate weapons from someone.
Do you have any er…
-
## Expected behavior
These are the examples from the docs:
```ruby
# bad
has_many :accounts, class_name: Account
has_many :accounts, class_name: Account.name
# good
has_many :accounts, clas…
-
there is a multi-column index (a,c,b) on the table, when using 'like' on a condition which is an exact match, the next column in multi-column index could not use index scan.
```
create table t3 (a…
-
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
```
create table t(c1 int key, c2 int, c3 int, unique key uk(c2));
…
-
Motivation: https://github.com/atom/deprecation-cop/issues/32
cc @lee-dohm
-
## Is your feature request related to a problem? Please describe.
I've seen code like
```
Model.find_in_batches.each do |batch|
batch.each do |item|
...
end
end
```
This could be …