expect(page).tohave_text("#{organizer.name} updated social tag, email, googleplus and sponsor email of contact details in conference #{conference.short_title}")
end
scenario'display changes in program',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new cfp for events in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated start date and end date of cfp for events in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted cfp for events in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) created new registration period in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated start date and end date of registration period in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted registration period in conference #{conference.short_title}")
end
scenario'display changes in conference',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new event type Discussion in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated length and maximum abstract length of event type Discussion in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted event type Discussion in conference #{conference.short_title}")
end
scenario'display changes in lodging',feature:true,versioning:true,js:truedo
lodging.update_attributes(description:'Nice view,close to venue',website_link:'http://www.example.com')
lodging.destroy
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) created new lodging Hotel XYZ in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated description and website link of lodging Hotel XYZ in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted lodging Hotel XYZ in conference #{conference.short_title}")
end
scenario'display changes in role',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new sponsor SUSE in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated website url and sponsorship level of sponsor SUSE in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted sponsor SUSE in conference #{conference.short_title}")
end
scenario'display changes in sponsorship_level',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new ticket Gold in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated price cents and description of ticket Gold in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted ticket Gold in conference #{conference.short_title}")
end
scenario'display changes in track',feature:true,versioning:true,js:truedo
venue.update_attributes(website:'www.example.com new',description:'Just another beautiful venue')
venue.destroy
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) created new venue Example University in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated website and description of venue Example University in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted venue Example University in conference #{conference.short_title}")
end
scenario'display changes in event',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new commercial in event #{event_with_commercial.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated url of commercial in event #{event_with_commercial.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted commercial in event #{event_with_commercial.title} in conference #{conference.short_title}")
end
scenario'display changes in event commercials in event history',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) registered #{organizer.name} to event My second event in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated attended of #{organizer.name}'s registration for event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) unregistered #{organizer.name} from event #{event.title} in conference #{conference.short_title}")
end
scenario'display changes in target',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) created new target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated due date and target count of target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted target 1000 Submissions by #{Date.today} in conference #{conference.short_title}")
end
scenario'display changes in comment',feature:true,versioning:true,js:truedo
expect(page).tohave_text("Someone (probably via the console) deleted #{organizer.name}'s comment on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) re-added #{organizer.name}'s comment on event #{event.title} in conference #{conference.short_title}")
scenario'display changes in vote',feature:true,versioning:true,js:truedo
conference.program.rating=1
create(:event,program:conference.program,title:'My first event')
event=create(:event,program:conference.program,title:'My second event')
create(:vote,user:organizer,event:event)
Vote.last.destroy
PaperTrail::Version.last.reify.save
visitadmin_revision_history_path
expect(page).tohave_text("Someone (probably via the console) voted on event My second event in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted #{organizer.name}'s vote on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) re-added #{organizer.name}'s vote on event #{event.title} in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) created new campaign Test Campaign in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) updated utm source, utm medium, utm term and utm content of campaign Test Campaign in conference #{conference.short_title}")
expect(page).tohave_text("Someone (probably via the console) deleted campaign Test Campaign in conference #{conference.short_title}")