about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:17:01 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:17:01 +0100
commit71fe24096c612996cb2a827c919a4c88ae1e3495 (patch)
treefb1deed15866b83f0ed1583c91bc4d6fcb432827 /spec/models
parent42eeecba3f334227c10533a065e238f51f6dee4c (diff)
Adding a Mention model, test stubs
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/account_spec.rb44
-rw-r--r--spec/models/favourite_spec.rb28
-rw-r--r--spec/models/follow_spec.rb24
-rw-r--r--spec/models/mention_spec.rb5
-rw-r--r--spec/models/status_spec.rb32
-rw-r--r--spec/models/stream_entry_spec.rb11
-rw-r--r--spec/models/stream_spec.rb5
-rw-r--r--spec/models/user_spec.rb2
8 files changed, 141 insertions, 10 deletions
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb
index 74410ece7..fbcc972cf 100644
--- a/spec/models/account_spec.rb
+++ b/spec/models/account_spec.rb
@@ -1,5 +1,47 @@
 require 'rails_helper'
 
 RSpec.describe Account, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
+  describe '#follow!' do
+    pending
+  end
+
+  describe '#unfollow!' do
+    pending
+  end
+
+  describe '#following?' do
+    pending
+  end
+
+  describe '#local?' do
+    pending
+  end
+
+  describe '#acct' do
+    pending
+  end
+
+  describe '#subscribed?' do
+    pending
+  end
+
+  describe '#keypair' do
+    pending
+  end
+
+  describe '#subscription' do
+    pending
+  end
+
+  describe '#object_type' do
+    pending
+  end
+
+  describe '#title' do
+    pending
+  end
+
+  describe '#content' do
+    pending
+  end
 end
diff --git a/spec/models/favourite_spec.rb b/spec/models/favourite_spec.rb
index 271aef4a4..ad803ec4b 100644
--- a/spec/models/favourite_spec.rb
+++ b/spec/models/favourite_spec.rb
@@ -1,5 +1,31 @@
 require 'rails_helper'
 
 RSpec.describe Favourite, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
+  describe '#verb' do
+    pending
+  end
+
+  describe '#title' do
+    pending
+  end
+
+  describe '#content' do
+    pending
+  end
+
+  describe '#object_type' do
+    pending
+  end
+
+  describe '#target' do
+    pending
+  end
+
+  describe '#mentions' do
+    pending
+  end
+
+  describe '#thread' do
+    pending
+  end
 end
diff --git a/spec/models/follow_spec.rb b/spec/models/follow_spec.rb
index 9b76332f6..edb084701 100644
--- a/spec/models/follow_spec.rb
+++ b/spec/models/follow_spec.rb
@@ -1,5 +1,27 @@
 require 'rails_helper'
 
 RSpec.describe Follow, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
+  describe '#verb' do
+    pending
+  end
+
+  describe '#title' do
+    pending
+  end
+
+  describe '#content' do
+    pending
+  end
+
+  describe '#object_type' do
+    pending
+  end
+
+  describe '#target' do
+    pending
+  end
+
+  describe '#mentions' do
+    pending
+  end
 end
diff --git a/spec/models/mention_spec.rb b/spec/models/mention_spec.rb
new file mode 100644
index 000000000..5c91fda02
--- /dev/null
+++ b/spec/models/mention_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe Mention, type: :model do
+
+end
diff --git a/spec/models/status_spec.rb b/spec/models/status_spec.rb
index c185efc3c..070e7b87f 100644
--- a/spec/models/status_spec.rb
+++ b/spec/models/status_spec.rb
@@ -1,5 +1,35 @@
 require 'rails_helper'
 
 RSpec.describe Status, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
+  describe '#local?' do
+    pending
+  end
+
+  describe '#reblog?' do
+    pending
+  end
+
+  describe '#reply?' do
+    pending
+  end
+
+  describe '#mentions' do
+    pending
+  end
+
+  describe '#verb' do
+    pending
+  end
+
+  describe '#object_type' do
+    pending
+  end
+
+  describe '#title' do
+    pending
+  end
+
+  describe '#target' do
+    pending
+  end
 end
diff --git a/spec/models/stream_entry_spec.rb b/spec/models/stream_entry_spec.rb
new file mode 100644
index 000000000..6386cac0f
--- /dev/null
+++ b/spec/models/stream_entry_spec.rb
@@ -0,0 +1,11 @@
+require 'rails_helper'
+
+RSpec.describe StreamEntry, type: :model do
+  describe '#targeted?' do
+    pending
+  end
+
+  describe '#threaded?' do
+    pending
+  end
+end
diff --git a/spec/models/stream_spec.rb b/spec/models/stream_spec.rb
deleted file mode 100644
index 7fc775652..000000000
--- a/spec/models/stream_spec.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe Stream, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
-end
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 47a31bb43..64de06749 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,5 +1,5 @@
 require 'rails_helper'
 
 RSpec.describe User, type: :model do
-  pending "add some examples to (or delete) #{__FILE__}"
+
 end