diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 03:31:45 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 03:31:45 +0200 |
commit | ccb6a658fd1a2e596c95d5b8e7a39f72a5f5b14b (patch) | |
tree | 7b846b51e3c91fb93aa379361dfe7a811bf5a01c /spec/fabricators | |
parent | 94d00f278819d34ef97d59d17eb289e9be217dfe (diff) | |
parent | 667ffafef8c8b7956cdd31b8f65d5e82778211d8 (diff) |
Merge branch 'fakenine-add_more_tests_to_models'
Diffstat (limited to 'spec/fabricators')
-rw-r--r-- | spec/fabricators/account_fabricator.rb | 2 | ||||
-rw-r--r-- | spec/fabricators/block_fabricator.rb | 3 | ||||
-rw-r--r-- | spec/fabricators/follow_fabricator.rb | 3 | ||||
-rw-r--r-- | spec/fabricators/follow_request_fabricator.rb | 3 | ||||
-rw-r--r-- | spec/fabricators/mention_fabricator.rb | 4 | ||||
-rw-r--r-- | spec/fabricators/user_fabricator.rb | 2 |
6 files changed, 12 insertions, 5 deletions
diff --git a/spec/fabricators/account_fabricator.rb b/spec/fabricators/account_fabricator.rb index 3a7c00bf5..567de05f4 100644 --- a/spec/fabricators/account_fabricator.rb +++ b/spec/fabricators/account_fabricator.rb @@ -1,3 +1,3 @@ Fabricator(:account) do - username "alice" + username { Faker::Internet.user_name(nil, %w(_)) } end diff --git a/spec/fabricators/block_fabricator.rb b/spec/fabricators/block_fabricator.rb index 9a5a6808f..379931ba6 100644 --- a/spec/fabricators/block_fabricator.rb +++ b/spec/fabricators/block_fabricator.rb @@ -1,3 +1,4 @@ Fabricator(:block) do - + account + target_account { Fabricate(:account) } end diff --git a/spec/fabricators/follow_fabricator.rb b/spec/fabricators/follow_fabricator.rb index 9d9d06f12..9b25dc547 100644 --- a/spec/fabricators/follow_fabricator.rb +++ b/spec/fabricators/follow_fabricator.rb @@ -1,3 +1,4 @@ Fabricator(:follow) do - + account + target_account { Fabricate(:account) } end diff --git a/spec/fabricators/follow_request_fabricator.rb b/spec/fabricators/follow_request_fabricator.rb index 9c3733cef..78a057919 100644 --- a/spec/fabricators/follow_request_fabricator.rb +++ b/spec/fabricators/follow_request_fabricator.rb @@ -1,3 +1,4 @@ Fabricator(:follow_request) do - + account + target_account { Fabricate(:account) } end diff --git a/spec/fabricators/mention_fabricator.rb b/spec/fabricators/mention_fabricator.rb new file mode 100644 index 000000000..cb5fe4299 --- /dev/null +++ b/spec/fabricators/mention_fabricator.rb @@ -0,0 +1,4 @@ +Fabricator(:mention) do + account + status +end diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index c08559137..16b3b1f6f 100644 --- a/spec/fabricators/user_fabricator.rb +++ b/spec/fabricators/user_fabricator.rb @@ -1,6 +1,6 @@ Fabricator(:user) do account - email "alice@example.com" + email { Faker::Internet.email } password "123456789" confirmed_at { Time.now } end |