Skip to content

Commit c3b7c3b

Browse files
committed
restored fabricators
1 parent 63fbd49 commit c3b7c3b

5 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fabricator(:answer) do
2+
description "MyString"
3+
user ""
4+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fabricator(:program) do
2+
author_username "MyString"
3+
slug "MyString"
4+
title "MyString"
5+
source_code "MyString"
6+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fabricator(:question) do
2+
title "Title"
3+
description "Description"
4+
user
5+
end

spec/fabricators/rel_fabricator.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fabricator(:rel) do
2+
slug { "some_slug" }
3+
description { "Some description" }
4+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fabricator(:user) do
2+
email { sequence(:email) { |i| "user#{i}@example.com"} }
3+
password "password"
4+
password_confirmation "password"
5+
end

0 commit comments

Comments
 (0)