add invites actions in controller and views
Index is added so organizer can see who they have invited. Oganizers will now be able to invite users with their email.Organizer will be able to delete and edit a invite.Add test for actions.
This commit is contained in:
parent
654760c3fc
commit
1c04e820b8
9 changed files with 279 additions and 3 deletions
9
spec/factories/invites.rb
Normal file
9
spec/factories/invites.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FactoryBot.define do
|
||||
factory :invite do
|
||||
conference
|
||||
emails { 'user@example.com' }
|
||||
end_date { '2019-08-12' }
|
||||
invite_for { (I18n.t 'booth').capitalize.to_s }
|
||||
user_id { 1 }
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue