about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-14 19:19:32 +0200
committerGitHub <noreply@github.com>2018-08-14 19:19:32 +0200
commit8e111b753a3411b258cdb008c9a53bad696f4df1 (patch)
tree6ae9387736b8abf180c93f7f0d25c6952c04b9b2 /spec
parent018a9e4e7fdfac0f2e482f4b5fa66247afbc2ddb (diff)
Move status counters to separate table, count replies (#8104)
* Move status counters to separate table, count replies

* Migration to remove old counter columns from statuses table

* Fix schema file
Diffstat (limited to 'spec')
-rw-r--r--spec/fabricators/status_stat_fabricator.rb6
-rw-r--r--spec/models/status_stat_spec.rb5
2 files changed, 11 insertions, 0 deletions
diff --git a/spec/fabricators/status_stat_fabricator.rb b/spec/fabricators/status_stat_fabricator.rb
new file mode 100644
index 000000000..9c67fd404
--- /dev/null
+++ b/spec/fabricators/status_stat_fabricator.rb
@@ -0,0 +1,6 @@
+Fabricator(:status_stat) do
+  status_id        nil
+  replies_count    ""
+  reblogs_count    ""
+  favourites_count ""
+end
diff --git a/spec/models/status_stat_spec.rb b/spec/models/status_stat_spec.rb
new file mode 100644
index 000000000..5e9351aff
--- /dev/null
+++ b/spec/models/status_stat_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe StatusStat, type: :model do
+  pending "add some examples to (or delete) #{__FILE__}"
+end