diff --git a/spec/foobara/remote_imports/import_type_spec.rb b/spec/foobara/remote_imports/import_type_spec.rb index 0eb0270..157b228 100644 --- a/spec/foobara/remote_imports/import_type_spec.rb +++ b/spec/foobara/remote_imports/import_type_spec.rb @@ -25,9 +25,11 @@ expect(outcome).to be_success }.to change { Object.const_defined?(:SomeOrg) } - expect(result).to eq([SomeOrg::Auth]) + expect(result.size).to eq(1) + type = result.first + expect(type).to be_a(Foobara::Types::Type) + expect(type).to eq(SomeOrg::Auth::User.entity_type) expect(SomeOrg).to be_foobara_organization expect(SomeOrg::Auth).to be_foobara_domain - binding.pry end end