Skip to content

Commit 2a76325

Browse files
committed
Fix typos
1 parent da9d225 commit 2a76325

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

spec/rubocop/cop/rails/file_path_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@
128128
let(:cop_config) { { 'EnforcedStyle' => 'arguments' } }
129129

130130
context 'when using Rails.root.join with some path strings' do
131-
it 'does not registers an offense' do
131+
it 'does not register an offense' do
132132
expect_no_offenses("Rails.root.join('app', 'models', 'user.rb')")
133133
end
134134
end
135135

136136
context 'when using Rails.root.join in string interpolation of argument' do
137-
it 'does not registers an offense' do
137+
it 'does not register an offense' do
138138
expect_no_offenses(<<~'RUBY')
139139
'system "rm -rf #{Rails.root.join(\'a\', \'b.png\')}"'
140140
RUBY
@@ -150,15 +150,15 @@
150150
end
151151

152152
context 'when using string interpolation without Rails.root' do
153-
it 'does not registers an offense' do
153+
it 'does not register an offense' do
154154
expect_no_offenses(<<~'RUBY')
155155
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
156156
RUBY
157157
end
158158
end
159159

160160
context 'when using File::SEPARATOR string without Rails.root' do
161-
it 'does not registers an offense' do
161+
it 'does not register an offense' do
162162
expect_no_offenses(<<~'RUBY')
163163
"#{42}/"
164164
RUBY

spec/rubocop/cop/rails/pluck_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
end
5252

5353
context 'when using Rails 4.2 or older', :rails42 do
54-
it 'does not registers an offense' do
54+
it 'does not register an offense' do
5555
expect_no_offenses(<<~RUBY)
5656
x.#{method} { |a| a[:foo] }
5757
RUBY

spec/rubocop/cop/rails/present_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
)
239239
end
240240

241-
it 'does not registers an offense' do
241+
it 'does not register an offense' do
242242
expect_no_offenses(<<~RUBY)
243243
unless foo.blank?
244244
something

spec/rubocop/cop/rails/refute_methods_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
RUBY
5151
end
5252

53-
it 'does not registers an offense when using `assert_not` ' \
53+
it 'does not register an offense when using `assert_not` ' \
5454
'with a single argument' do
5555
expect_no_offenses(<<~RUBY)
5656
assert_not foo
5757
RUBY
5858
end
5959

60-
it 'does not registers an offense when using `assert_not` ' \
60+
it 'does not register an offense when using `assert_not` ' \
6161
'with a multiple arguments' do
6262
expect_no_offenses(<<~RUBY)
6363
assert_not foo, bar, baz
@@ -103,14 +103,14 @@
103103
RUBY
104104
end
105105

106-
it 'does not registers an offense when using `refute` ' \
106+
it 'does not register an offense when using `refute` ' \
107107
'with a single argument' do
108108
expect_no_offenses(<<~RUBY)
109109
refute foo
110110
RUBY
111111
end
112112

113-
it 'does not registers an offense when using `refute` ' \
113+
it 'does not register an offense when using `refute` ' \
114114
'with a multiple arguments' do
115115
expect_no_offenses(<<~RUBY)
116116
refute foo, bar, baz

0 commit comments

Comments
 (0)