diff --git a/spec/controllers/deposits_controller_spec.rb b/spec/controllers/deposits_controller_spec.rb new file mode 100644 index 0000000..d444a77 --- /dev/null +++ b/spec/controllers/deposits_controller_spec.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe DepositsController do + describe 'get_endpoints' do + it 'returns a ProquestEndpoint for given args' do + endpoint = controller.get_endpoint('test-pq', 'firsttestdepositor') + expect(endpoint).to be_a(Sword::Endpoints::ProquestEndpoint) + end + end +end