Skip to content

Commit a3db6a3

Browse files
fix tests
1 parent 8b1959c commit a3db6a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,17 +393,18 @@ class ::TestEmployee < ActiveRecord::Base; end
393393
schema_define do
394394
create_table :test_employees, force: true
395395
end
396+
class ::TestEmployee < ActiveRecord::Base; end
396397
end
397398

398399
after(:each) do
399400
schema_define do
400401
drop_table :test_employees, if_exists: true
401402
end
403+
Object.send(:remove_const, "TestEmployee")
404+
ActiveRecord::Base.clear_cache!
402405
end
403406

404407
it "should add created_at and updated_at" do
405-
class ::TestEmployee < ActiveRecord::Base; end
406-
407408
expect do
408409
@conn.add_timestamps("test_employees")
409410
end.not_to raise_error

0 commit comments

Comments
 (0)