Use name/title instead of ID for associated object when showing changes

This commit is contained in:
Nishanth Vijayan 2016-08-17 02:45:10 +05:30
parent c7b8418f1a
commit b982d18bbb
4 changed files with 34 additions and 6 deletions

View file

@ -58,6 +58,7 @@ feature 'Version' do
new_conference.update_attributes(title: 'New Con', short_title: 'NewCon')
visit admin_revision_history_path
select '100', from: 'versionstable_length'
expect(page).to have_text('Someone (probably via the console) created new conference New Con')
expect(page).to have_text('Someone (probably via the console) created new event type Talk in conference NewCon')
expect(page).to have_text('Someone (probably via the console) created new event type Workshop in conference NewCon')