Skip to content

Commit 14cf1d1

Browse files
author
markwilkinson
committed
remove FAIRsharing-specific stub
1 parent af4f36c commit 14cf1d1

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

spec/routes/api_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
expect(last_response.body).to include("<http://localhost:8282/tests/#{test_id}>")
3434
expect(last_response.body).to include('http://www.w3.org/ns/dcat#DataService')
3535
expect(last_response.body).to include('https://w3id.org/ftr#Test')
36-
expect(last_response.body).to include('https://doi.org/10.25504/FAIRsharing')
3736
end
3837
end
3938

spec/spec_helper.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,10 @@ def self.build_root_json(classes)
201201
allow(FAIRTest).to receive(:send).and_call_original
202202
TEST_IDS.each do |test_id|
203203
allow(FAIRTest).to receive(:send).with(test_id, anything).and_return(FAIRTestStub.send(test_id))
204-
allow(FAIRTest).to receive(:send).with("#{test_id}_about",
205-
anything).and_return(FAIRTestStub.send("#{test_id}_about"))
206-
allow(FAIRTest).to receive(:send).with("#{test_id}_api", anything).and_return(FAIRTestStub.send("#{test_id}_api"))
204+
allow(FAIRTest).to receive(:send).with("#{test_id}_about").and_return(FAIRTestStub.send("#{test_id}_about"))
205+
allow(FAIRTest).to receive(:send).with("#{test_id}_api").and_return(FAIRTestStub.send("#{test_id}_api"))
207206
end
208-
allow(FAIRTest).to receive(:send).with(anything, anything) do |method_name, *args|
207+
allow(FAIRTest).to receive(:send).with(anything, anything) do |method_name, *_args|
209208
FAIRTestStub.send(method_name)
210209
end
211210
stub_metrics = FAIRChampion::HarvesterStub.get_tests_metrics(tests: TEST_IDS)

0 commit comments

Comments
 (0)