Adding embedded PuSH server
This commit is contained in:
parent
26287b6e7d
commit
2d2c81765b
21 changed files with 262 additions and 8 deletions
13
spec/controllers/api/push_controller_spec.rb
Normal file
13
spec/controllers/api/push_controller_spec.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Api::PushController, type: :controller do
|
||||
describe 'POST #update' do
|
||||
context 'with hub.mode=subscribe' do
|
||||
pending
|
||||
end
|
||||
|
||||
context 'with hub.mode=unsubscribe' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
end
|
6
spec/fabricators/subscription_fabricator.rb
Normal file
6
spec/fabricators/subscription_fabricator.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
Fabricator(:subscription) do
|
||||
callback_url "http://example.com/callback"
|
||||
secret "foobar"
|
||||
expires_at "2016-11-28 11:30:07"
|
||||
confirmed false
|
||||
end
|
5
spec/models/subscription_spec.rb
Normal file
5
spec/models/subscription_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Subscription, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue