Fabricator(:oauth_session, from: Roqua::CoreApi::Sessions::OAuthSession) do initialize_with do Roqua::CoreApi::Sessions::OAuthSession.new access_token: 'some_access_token', core_host: 'http://core.dev' end end