require'spec_helper'RSpec.describeIdentity,models: truedodescribe'relations'doit{is_expected.tobelong_to(:user)}enddescribe'fields'doit{is_expected.torespond_to(:provider)}it{is_expected.torespond_to(:extern_uid)}enddescribe'#is_ldap?'dolet(:ldap_identity){create(:identity,provider: 'ldapmain')}let(:other_identity){create(:identity,provider: 'twitter')}it'returns true if it is a ldap identity'do