about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-29 01:30:32 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-29 01:30:32 +0100
commit3f075c7794ca7cc6e3c566591e9929859c6c325c (patch)
treefd649accdafbb57cf1ac5d7231dd44bd5dd447c8 /spec
parent1992575d577bf5b4c408a0104ad310e17846466a (diff)
API for apps to register for push notifications
Diffstat (limited to 'spec')
-rw-r--r--spec/fabricators/device_fabricator.rb3
-rw-r--r--spec/fabricators/domain_block_fabricator.rb2
-rw-r--r--spec/models/device_spec.rb5
3 files changed, 9 insertions, 1 deletions
diff --git a/spec/fabricators/device_fabricator.rb b/spec/fabricators/device_fabricator.rb
new file mode 100644
index 000000000..02b24e8b3
--- /dev/null
+++ b/spec/fabricators/device_fabricator.rb
@@ -0,0 +1,3 @@
+Fabricator(:device) do
+  registration_id "12345678"
+end
diff --git a/spec/fabricators/domain_block_fabricator.rb b/spec/fabricators/domain_block_fabricator.rb
index 540ddcacd..563a0f65b 100644
--- a/spec/fabricators/domain_block_fabricator.rb
+++ b/spec/fabricators/domain_block_fabricator.rb
@@ -1,3 +1,3 @@
 Fabricator(:domain_block) do
-  domain "MyString"
+  domain "example.com"
 end
diff --git a/spec/models/device_spec.rb b/spec/models/device_spec.rb
new file mode 100644
index 000000000..f56fbf978
--- /dev/null
+++ b/spec/models/device_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe Device, type: :model do
+
+end