about summary refs log tree commit diff
path: root/spec/fabricators
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-12-23 15:23:12 +0100
committerGitHub <noreply@github.com>2018-12-23 15:23:12 +0100
commit8a3e4a48838405a7a78f2b46cc2b2a7c8fa412fa (patch)
treeb5d7908956cab9d18dceda381e18cdb4a6e0e4ba /spec/fabricators
parent1a3088364fe602bb48647d78dda440b174424e17 (diff)
parentcb98e7dbd35c730a58f65112c3fa32ee180a2518 (diff)
Merge pull request #871 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/fabricators')
-rw-r--r--spec/fabricators/account_warning_fabricator.rb5
-rw-r--r--spec/fabricators/account_warning_preset_fabricator.rb3
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/fabricators/account_warning_fabricator.rb b/spec/fabricators/account_warning_fabricator.rb
new file mode 100644
index 000000000..db161d446
--- /dev/null
+++ b/spec/fabricators/account_warning_fabricator.rb
@@ -0,0 +1,5 @@
+Fabricator(:account_warning) do
+  account        nil
+  target_account nil
+  text           "MyText"
+end
diff --git a/spec/fabricators/account_warning_preset_fabricator.rb b/spec/fabricators/account_warning_preset_fabricator.rb
new file mode 100644
index 000000000..6c0b87e7c
--- /dev/null
+++ b/spec/fabricators/account_warning_preset_fabricator.rb
@@ -0,0 +1,3 @@
+Fabricator(:account_warning_preset) do
+  text "MyText"
+end