Sha256: 8aee688855c82db52b368d1d9e9551cb2d5015ce59b7570eaf33bd2ad3318a4e
Contents?: true
Size: 346 Bytes
Versions: 10
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples_for "having a json uploader error message" do it "renders json response with error message" do subject expect(response.media_type).to eq("application/json") expect(response.status).to eq(422) json = JSON.parse(response.body) expect(json).to have_key("message") end end
Version data entries
10 entries across 10 versions & 1 rubygems