feat: Add Platform APIs (#1456)

This commit is contained in:
Sojan Jose
2021-01-14 20:35:22 +05:30
committed by GitHub
parent 75c2a7cb2f
commit 7542330d61
25 changed files with 688 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/access_tokenable_spec.rb'
RSpec.describe User do
let!(:user) { create(:user) }
@@ -20,6 +21,10 @@ RSpec.describe User do
it { is_expected.to have_many(:events) }
end
describe 'concerns' do
it_behaves_like 'access_tokenable'
end
describe 'pubsub_token' do
before { user.update(name: Faker::Name.name) }