diff options
| author | jpl | 2016-08-23 11:28:06 +0200 | 
|---|---|---|
| committer | jpl | 2016-08-23 11:28:06 +0200 | 
| commit | 8b3f3055ec5ee19bdaf9f334c83cfcdd01c7ed0b (patch) | |
| tree | 5f542928e52540fd2d7bead72644e11186a9f3ca /spec/fabricators | |
| parent | cdd593a7faddbcf61ca71eb57421478623aed897 (diff) | |
| download | chouette-core-8b3f3055ec5ee19bdaf9f334c83cfcdd01c7ed0b.tar.bz2 | |
Refs #1482: adding cucumber for tests
Diffstat (limited to 'spec/fabricators')
| -rw-r--r-- | spec/fabricators/user_fabricator.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb new file mode 100644 index 000000000..04c1c6279 --- /dev/null +++ b/spec/fabricators/user_fabricator.rb @@ -0,0 +1,8 @@ +Fabricator :user do +  email     { sequence(:email) { |i| "user#{i}@example.com" } } +  name { sequence(:name) { |i| "fname#{i}" } } +   +  password { 'password' } + +  username { "#{FFaker::Name.first_name.parameterize}.#{FFaker::Name.last_name.parameterize}" } +end
\ No newline at end of file  | 
