-
Let me explain this with an example
I try to commit two files.
`git commit -am "test"`
Now the overcommit precommit hooks come into place, and it keeps starts going through the various checks I've …
-
Hi, it seems the latest branch is using an older version of rubocop-rpsec.
https://github.com/codeclimate/codeclimate-rubocop/blob/channel/rubocop-0-58/Gemfile.lock#L52
vs
https://github.com/code…
-
running
rails 3.2.11 with rpsec 2
When ever i try to run rspec i get this error when the better_errors is installed
.rvm/gems/ruby-1.9.3-p374/gems/better_errors-0.3.2/lib/better_errors/core_ext/exc…
-
I usually write single line tests like so:
```
it { is_expected.to have_content 'foo bar' }
```
Sometimes the expression might get too long to fit within the given line length limit. In that cas…
-
I have a `User` model that `has_many` accounts, each `Account` `belongs_to` one user and `has_many` transactions, each `Transactions` to two different accounts (`sender_account` and `recipient_account…
-
@benhalpern commented on [Thu Jul 12 2018](https://github.com/thepracticaldev/dev.to_core/issues/574)
# _TASK or Feature_
### Request or User Story
As a user I'd like to be able to use the `{% link…
-
### Why ?
We need a test framework right away. This way, rails will generate the different files correctly. I'd rather like Rspec as its syntax is more readable and the tests look good.
### Must h…
-
### Why ?
Husky is a tool to run commands before each commit and push. It block a commit/push if everything is not perfect.
We are all lazy. Husky helps us by forcing us to keep our code base clea…
-
When I `require: rubocop-rspec` and try to use auto-correcting
https://github.com/nevir/rubocop-rspec/issues/41
```
bundle exec rubocop spec/models -a
Inspecting 47 files
....
4 files inspected, no…
-
# Versions
- Ruby: 2.3.3
- Bundler: 1.14.6
- Rails: 5.0.2
- acts-as-taggable-on: 4.0.0
- Rspec: 3.5.4
# Gemfile
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'acts-as-taggable-on', '…