Skip to content

Commit c2d6c7d

Browse files
authored
Merge pull request #2278 from yahonda/remove_redundant_cop
Enable `RSpec/RepeatedExample` cop
2 parents 4f4dd16 + f4af832 commit c2d6c7d

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,6 @@ RSpec/EmptyLineAfterSubject:
300300

301301
RSpec/ExcessiveDocstringSpacing:
302302
Enabled: true
303+
304+
RSpec/RepeatedExample:
305+
Enabled: true

spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,6 @@ class ::TestPost < ActiveRecord::Base
229229
dump = ActiveRecord::Base.connection.structure_dump
230230
expect(dump).to match(/#{comment_sql}/)
231231
end
232-
233-
it "should dump table comments" do
234-
comment_sql = %Q(COMMENT ON TABLE "TEST_POSTS" IS 'Test posts with ''some'' "quotes"')
235-
@conn.execute comment_sql
236-
dump = ActiveRecord::Base.connection.structure_dump
237-
expect(dump).to match(/#{comment_sql}/)
238-
end
239-
240-
it "should dump column comments" do
241-
comment_sql = %Q(COMMENT ON COLUMN "TEST_POSTS"."TITLE" IS 'The title of the post with ''some'' "quotes"')
242-
@conn.execute comment_sql
243-
dump = ActiveRecord::Base.connection.structure_dump
244-
expect(dump).to match(/#{comment_sql}/)
245-
end
246232
end
247233

248234
describe "temporary tables" do

0 commit comments

Comments
 (0)