title: Use anonymous class generated by struct in ruby tests
body: <p>So, here we have a file with struct,</p>
  <pre><code>module CoreDomain
    Corporation = Struct.new(...)
  end
  </code></pre>
  <p>and we have such a test file,</p>
  <pre><code>require 'test_helper'
  
  module CoreDomain
    class CorporationTest &lt; ActiveSupport::TestCase
      def test_corporation_struct_creation
        corp_struct = CoreDomain::Corporation.new(...)
  
        assert_equal ..., ...
      end
    end
  end
  
  </code></pre>
  <p>when I trying to execute the test I get this error.</p>
  <pre><code>NameError: uninitialized constant CoreDomain::Corporation
  </code></pre>
  <p>Question - where I am getting wrong?</p>