debian-mirror-gitlab/spec/models/concerns/blocks_unsafe_serialization_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
376 B
Ruby
Raw Permalink Normal View History

2022-05-07 20:08:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe BlocksUnsafeSerialization do
before do
stub_const('DummyModel', Class.new)
DummyModel.class_eval do
include ActiveModel::Serializers::JSON
include BlocksUnsafeSerialization
end
end
it_behaves_like 'blocks unsafe serialization' do
let(:object) { DummyModel.new }
end
end