Skip to content

Commit

Permalink
WIP: specs, part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fcd1 committed Dec 2, 2024
1 parent 3a54e56 commit ea103cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/controllers/deposits_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ea103cf

Please sign in to comment.