Skip to content

Commit ad73d28

Browse files
committed
Fix ActiveRecord unit tests
1 parent 999dee2 commit ad73d28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/unit/active_record/object_inspection_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
require 'spec_helper'
44

55
RSpec.describe SuperDiff, type: :unit do
6+
before do
7+
SuperDiff::Test::Models::ActiveRecord.define_tables
8+
end
9+
610
describe '.inspect_object', 'for ActiveRecord objects', active_record: true do
711
context 'given an ActiveRecord object' do
812
context 'given as_lines: false' do
@@ -33,6 +37,7 @@
3337
type: :delete,
3438
indentation_level: 1
3539
)
40+
3641
expect(tiered_lines).to match(
3742
[
3843
an_object_having_attributes(

0 commit comments

Comments
 (0)