Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,28 @@
# frozen_string_literal: true
RSpec.describe Faraday::AdapterRegistry do
describe '#initialize' do
subject(:registry) { described_class.new }
it { expect { registry.get(:FinFangFoom) }.to raise_error(NameError) }
it { expect { registry.get('FinFangFoom') }.to raise_error(NameError) }
it 'looks up class by string name' do
expect(registry.get('Faraday::Connection')).to eq(Faraday::Connection)
end
it 'looks up class by symbol name' do
expect(registry.get(:Faraday)).to eq(Faraday)
end
it 'caches lookups with implicit name' do
registry.set :symbol
expect(registry.get('symbol')).to eq(:symbol)
end
it 'caches lookups with explicit name' do
registry.set 'string', :name
expect(registry.get(:name)).to eq('string')
end
end
end