From 1ccfe5c761b17a22233ba2af635423ddb4e06801 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Tue, 22 Dec 2020 19:35:11 +0300 Subject: [PATCH] wip! Attempt to add a failing test case --- .../no_active_record/spec/verify_no_active_record_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example_app_generator/no_active_record/spec/verify_no_active_record_spec.rb b/example_app_generator/no_active_record/spec/verify_no_active_record_spec.rb index 75ce27c5ed..257b4c8986 100644 --- a/example_app_generator/no_active_record/spec/verify_no_active_record_spec.rb +++ b/example_app_generator/no_active_record/spec/verify_no_active_record_spec.rb @@ -1,7 +1,13 @@ require 'rails_helper' +class SomeClass; end + RSpec.describe 'Example App' do it "does not have ActiveRecord defined" do expect(defined?(ActiveRecord)).not_to be end + + it "does not crash on Rails 6.1.0", issue: 2417 do + SomeClass.new + end end