Skip to content

Commit

Permalink
Ensure faker-generated data is valid
Browse files Browse the repository at this point in the history
Faker sometimes generates names of cats that have spaces, but Group
does not allow spaces in the title.
  • Loading branch information
danidoni committed Mar 16, 2022
1 parent 02d0a50 commit ae1d3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace :dev do

# Users
admin = User.where(login: 'Admin').first || create(:admin_user, login: 'Admin')
group = create(:groups_user, user: admin, group: create(:group, title: Faker::Creature::Cat.name)).group
group = create(:groups_user, user: admin, group: create(:group, title: Faker::Lorem.word)).group
subscribe_to_all_notifications(admin)
requestor = User.where(login: 'Requestor').first || create(:confirmed_user, login: 'Requestor')
User.session = requestor
Expand Down

0 comments on commit ae1d3fc

Please sign in to comment.