1
0
зеркало из https://github.com/glebtv/yookassa.git synced 2026-09-07 19:35:51 +03:00

Preparing clients for partner api (#25)

Этот коммит содержится в:
Ivan Shamatov
2021-11-20 13:49:46 +03:00
коммит произвёл GitHub
родитель 6072b2ae0f
Коммит 7f79ffa4b4
12 изменённых файлов: 56 добавлений и 118 удалений

Просмотреть файл

@@ -19,23 +19,6 @@ RSpec.describe Yookassa do
end
end
describe ".client" do
context "when no settings are provided" do
before { Yookassa.instance_variable_set(:@config, nil) }
it "raises an error" do
expect { Yookassa.client }.to raise_error(Yookassa::ConfigError)
end
end
context "when instance configured" do
it "creates and stores client" do
expect(Yookassa.client).to be_a(Yookassa::Client)
expect(Yookassa.client).to eq(Yookassa.client)
end
end
end
describe ".payments" do
it "delegates request to client and creates an instance" do
expect(Yookassa.payments).to be_a(Yookassa::Payments)