require 'spec_helper' require 'sufia/move_all_works_to_admin_set' describe MoveAllWorksToAdminSet do subject { described_class.run(admin_set) } let(:admin_set) { create(:admin_set) } let!(:work) { create(:work) } it "moves the work into the admin set" do subject expect(work.reload.admin_set).to eq admin_set end end