1
0
Fork 0

fix subscription spec

Dieser Commit ist enthalten in:
merefield 2021-10-27 14:09:34 +01:00
Ursprung 791eab6c47
Commit 0752f8068a

Datei anzeigen

@ -4,11 +4,11 @@ require_relative '../../../plugin_helper'
describe CustomWizard::Subscription::SubscriptionSerializer do describe CustomWizard::Subscription::SubscriptionSerializer do
it 'should return subscription attributes' do it 'should return subscription attributes' do
sub = CustomWizard::Subscription::Subscription.new(OpenStruct.new(type: 'community', updated_at: Time.now)) sub = CustomWizard::Subscription::Subscription.new(OpenStruct.new(type: 'standard', updated_at: Time.now))
serialized = described_class.new(sub, root: false).as_json serialized = described_class.new(sub, root: false).as_json
expect(serialized[:active]).to eq(true) expect(serialized[:active]).to eq(true)
expect(serialized[:type]).to eq('community') expect(serialized[:type]).to eq('standard')
expect(serialized[:updated_at]).to eq(sub.updated_at) expect(serialized[:updated_at]).to eq(sub.updated_at)
end end
end end