diff --git a/test/schema_object_base_test.rb b/test/schema_object_base_test.rb
index <HASH>..<HASH> 100644
--- a/test/schema_object_base_test.rb
+++ b/test/schema_object_base_test.rb
@@ -20,6 +20,9 @@ describe Scorpio::SchemaObjectBase do
         assert_equal(%q(Scorpio::SchemaClasses["https://scorpio/foo#"]), subject.class.inspect)
       end
     end
+    it 'is the constant name plus the id for a class assigned to a constant' do
+      assert_equal(%q(Scorpio::OpenAPI::V2::Operation (http://swagger.io/v2/schema.json#/definitions/operation)), Scorpio::OpenAPI::V2::Operation.inspect)
+    end
   end
   describe 'class name' do
     let(:schema_content) { {'id' => 'https://scorpio/SchemaObjectBaseTest'} }
test SchemaObjectBase .inspect class method on a schema class set to a constant to get its name