File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments