about summary refs log tree commit diff
path: root/spec/fabricators
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-05-23 00:58:57 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-22 17:58:57 +0200
commitbda739122110a36b620cb06cf850fa259aafa896 (patch)
treed7cc3b7f49e9f3212c0999c50dab3e6fd33d4c41 /spec/fabricators
parentb9e8ffbd12310bfedaff7e3b5dab63db1d5d86a0 (diff)
Cover ApplicationController more in spec (#3230)
Diffstat (limited to 'spec/fabricators')
-rw-r--r--spec/fabricators/stream_entry_fabricator.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/fabricators/stream_entry_fabricator.rb b/spec/fabricators/stream_entry_fabricator.rb
new file mode 100644
index 000000000..f33822c7c
--- /dev/null
+++ b/spec/fabricators/stream_entry_fabricator.rb
@@ -0,0 +1,5 @@
+Fabricator(:stream_entry) do
+  account
+  activity { Fabricate(:status) }
+  hidden { [true, false].sample }
+end