Files
ubicloud/spec/serializers/base_spec.rb
Enes Cakir 4ca010fa58 Remove billing info serializer
We've stopped using serializers for web routes, so I removed
`Serializers::BillingInfo`.

I moved the Stripe data mapping to the `stripe_data` method, which now
returns the used hash instead of the raw data.
2025-03-17 22:09:36 +03:00

14 lines
356 B
Ruby

# frozen_string_literal: true
require_relative "../spec_helper"
RSpec.describe Serializers::Base do
it "raises an error when serialize_internal is called" do
expect { described_class.serialize_internal(nil) }.to raise_error(NoMethodError)
end
it "returns nil if nil is passed" do
expect(described_class.serialize(nil)).to be_nil
end
end