debian-mirror-gitlab/spec/models/concerns/blocks_unsafe_serialization_spec.rb
2022-05-07 20:08:51 +05:30

17 lines
376 B
Ruby

# 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