diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 13:36:47 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 13:36:47 +0100 |
commit | 2d2c81765b0a68446a94a7fcba34758a3aa886c0 (patch) | |
tree | 0a0610b95195120bd334ad96f2f308a3bb30295a /spec | |
parent | 26287b6e7dd68e03d6f2d6a7051bb9873e3f6c9a (diff) |
Adding embedded PuSH server
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/api/push_controller_spec.rb | 13 | ||||
-rw-r--r-- | spec/fabricators/subscription_fabricator.rb | 6 | ||||
-rw-r--r-- | spec/models/subscription_spec.rb | 5 |
3 files changed, 24 insertions, 0 deletions
diff --git a/spec/controllers/api/push_controller_spec.rb b/spec/controllers/api/push_controller_spec.rb new file mode 100644 index 000000000..e699006f7 --- /dev/null +++ b/spec/controllers/api/push_controller_spec.rb @@ -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 diff --git a/spec/fabricators/subscription_fabricator.rb b/spec/fabricators/subscription_fabricator.rb new file mode 100644 index 000000000..0c8290494 --- /dev/null +++ b/spec/fabricators/subscription_fabricator.rb @@ -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 diff --git a/spec/models/subscription_spec.rb b/spec/models/subscription_spec.rb new file mode 100644 index 000000000..d40bf0b44 --- /dev/null +++ b/spec/models/subscription_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Subscription, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end |