diff --git a/spec/reek/smells/irresponsible_module_spec.rb b/spec/reek/smells/irresponsible_module_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/reek/smells/irresponsible_module_spec.rb
+++ b/spec/reek/smells/irresponsible_module_spec.rb
@@ -162,6 +162,13 @@ RSpec.describe Reek::Smells::IrresponsibleModule do
     expect(src).to reek_of(:IrresponsibleModule, name: 'Foo')
   end
 
+  it 'reports top level classes defined through assignment' do
+    src = <<-EOS
+      Foo = Class.new Bar
+    EOS
+    expect(src).to reek_of(:IrresponsibleModule, name: 'Foo')
+  end
+
   it 'reports structs defined through assignment' do
     src = <<-EOS
       # Qux is responsible, but Foo is not
@@ -172,6 +179,13 @@ RSpec.describe Reek::Smells::IrresponsibleModule do
     expect(src).to reek_of(:IrresponsibleModule, name: 'Foo')
   end
 
+  it 'reports top level structs defined through assignment' do
+    src = <<-EOS
+      Foo = Struct.new(:x, :y)
+    EOS
+    expect(src).to reek_of(:IrresponsibleModule, name: 'Foo')
+  end
+
   it 'does not report constants that are not classes' do
     src = <<-EOS
       module Qux
Top-level dynamically created classes are detected