diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 16:56:30 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 16:56:30 +0300 |
commit | d64183e1fa26ab77107e3a2a20be1fe4df3a1875 (patch) | |
tree | 00d7b51545c116ce67bb857fd1003ea381250584 /spec/factories/chat_names.rb | |
parent | c60437786bfe43344b4a5eb040437f73f37c6396 (diff) |
Add most of specs for chat names
Diffstat (limited to 'spec/factories/chat_names.rb')
-rw-r--r-- | spec/factories/chat_names.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/factories/chat_names.rb b/spec/factories/chat_names.rb new file mode 100644 index 00000000000..24225468d55 --- /dev/null +++ b/spec/factories/chat_names.rb @@ -0,0 +1,16 @@ +FactoryGirl.define do + factory :chat_name, class: ChatName do + user factory: :user + service factory: :service + + team_id 'T0001' + team_domain 'Awesome Team' + + sequence :chat_id do |n| + "U#{n}" + end + sequence :chat_name do |n| + "user#{n}" + end + end +end |