1
0
Fork 0
discourse-custom-wizard-unl.../spec/serializers/custom_wizard/subscription_serializer_spec.rb
angusmcleod 084c6f4a7a wip
2021-09-24 17:58:42 +08:00

14 Zeilen
534 B
Ruby

# frozen_string_literal: true
require_relative '../../plugin_helper'
describe CustomWizard::SubscriptionSerializer do
it 'should return subscription attributes' do
subscription = CustomWizard::Subscription.new
serialized = described_class.new(subscription, root: false)
expect(serialized.server).to eq(subscription.server)
expect(serialized.authentication.class).to eq(CustomWizard::Subscription::Authentication)
expect(serialized.subscription.class).to eq(CustomWizard::Subscription::Subscription)
end
end