Setup basic Revision History page
Sets up paper_trail tracking in important models and add conference_id to versions for storing conference_id of conference related objects as metadata.This will help in querying for versions related to conferences. Fix issues with factories & event types initialization.Import paper_trail testing helpers Fix bug: Creating an event creates a useless version with event update Add revert and view changes features to revision history
This commit is contained in:
parent
60877e9593
commit
a45e537bac
49 changed files with 760 additions and 26 deletions
|
|
@ -102,6 +102,9 @@ feature 'Has correct abilities' do
|
|||
|
||||
visit admin_conference_commercials_path(conference1.short_title)
|
||||
expect(current_path).to eq(admin_conference_commercials_path(conference1.short_title))
|
||||
|
||||
visit admin_revision_history_path
|
||||
expect(current_path).to eq(admin_revision_history_path)
|
||||
end
|
||||
|
||||
scenario 'when user is cfp' do
|
||||
|
|
@ -176,6 +179,9 @@ feature 'Has correct abilities' do
|
|||
|
||||
visit admin_conference_commercials_path(conference2.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_revision_history_path
|
||||
expect(current_path).to eq(root_path)
|
||||
end
|
||||
|
||||
scenario 'when user is info desk' do
|
||||
|
|
@ -250,5 +256,8 @@ feature 'Has correct abilities' do
|
|||
|
||||
visit admin_conference_commercials_path(conference3.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_revision_history_path
|
||||
expect(current_path).to eq(root_path)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue