Skip to content

Commit 000f895

Browse files
authored
Update README.md
1 parent 8e9d451 commit 000f895

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

RoR/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ ActiveRecord::Base.connection.columns('users').map(&:name) # List all column
9494
Basic usage:
9595

9696
```bash
97-
rubocop # Check code style
97+
bundle exec rubocop # Check code style
9898
```
9999

100100
Auto-correction options:
101101

102102
```bash
103-
rubocop -a # Safe auto-corrections (--auto-correct)
104-
rubocop -A # Safe + unsafe auto-corrections (--auto-correct-all)
103+
bundle exec rubocop -a # Safe auto-corrections (--auto-correct)
104+
bundle exec rubocop -A # Safe + unsafe auto-corrections (--auto-correct-all)
105105
```
106106

107107
Common RuboCop flags:
@@ -123,6 +123,12 @@ end_time = Time.now
123123
Rails.logger.debug "Operation took #{end_time - start_time} seconds"
124124
```
125125

126+
### RSpec
127+
128+
```bash
129+
bundle exec rspec
130+
```
131+
126132
----------------------------
127133

128134
# Initialization

0 commit comments

Comments
 (0)