Show how many people has registered to events in the list and view event in admin page. fix #958
This commit is contained in:
parent
ea76d93ecf
commit
ee27a080ad
3 changed files with 22 additions and 7 deletions
|
|
@ -21,11 +21,12 @@ describe 'admin/events/index' do
|
|||
expect(rendered).to have_selector('table thead th:nth-of-type(3)', text: 'Submitter')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(4)', text: 'Speaker')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(5)', text: 'Pre-registration')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(6)', text: 'Highlight')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(7)', text: 'Type')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(8)', text: 'Track')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(9)', text: 'Difficulty')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(10)', text: 'State')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(6)', text: 'Registrations')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(7)', text: 'Highlight')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(8)', text: 'Type')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(9)', text: 'Track')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(10)', text: 'Difficulty')
|
||||
expect(rendered).to have_selector('table thead th:nth-of-type(11)', text: 'State')
|
||||
|
||||
expect(conference.program.events.count).to eq 2
|
||||
expect(rendered).to have_selector('table tr:nth-of-type(1) td:nth-of-type(1)', text: event1.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue