APIサーバーのテストのためにxhrを使おうとしたら出来なかったので・・・。
以下のようにrails_helper.rbに記述するとmodel specやrequest specとして動作させることができるようです。
spec/rails_helper.rb
Turnip.type = :request
typeはspec fileの
RSpec.describe AnyModel, :type => :model do
#pending "add some examples to (or delete) #{__FILE__}"
end
のtypeと同じものが使えます。