Sha256: a6628a21f7f2d619eb4f908e73c3b7d5cb8cb5b734170a10630ab056caa950f8
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
describe "Editing a file:", type: :feature do let(:user) { create(:user) } let(:file_title) { 'Some kind of title' } let(:work) { build(:work, user: user) } let(:file) { work.members.first } before do sign_in user work.ordered_members << create(:file_set, user: user, title: [file_title]) work.save! end context 'when the user tries to update file content, but forgets to select a file:' do it 'shows the edit page again' do visit edit_curation_concerns_file_set_path(file) click_link 'Versions' click_button 'Upload New Version' expect(page).to have_content "Edit #{file_title}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta2 | spec/features/edit_file_spec.rb |
sufia-7.0.0.beta1 | spec/features/edit_file_spec.rb |