Couldn't get Pretender to work. Using a Rails api works fine.