Sha256: ebdd0f0e5a7a1e7e0495773537c12e54816f848d85906bfc689f330c5b73c8db
Contents?: true
Size: 768 Bytes
Versions: 6
Compression:
Stored size: 768 Bytes
Contents
require 'spec_helper' describe "Add an attached file" do let(:user) { FactoryGirl.create(:user) } let!(:work) { FactoryGirl.create(:work, user: user) } before do sign_in user # stub out characterization. Travis doesn't have fits installed, and it's not relevant to the test. s2 = double('resque message') expect(CharacterizeJob).to receive(:new).and_return(s2) expect(Sufia.queue).to receive(:push).with(s2).once end it "should update the file" do visit "/concern/generic_works/#{work.id}" click_link 'Attach a File' attach_file("Upload a file", fixture_file_path('files/image.png')) click_button "Attach to Generic Work" within '.related_files' do expect(page).to have_link "image.png" end end end
Version data entries
6 entries across 6 versions & 1 rubygems