Sha256: 01b98058990a7641fd478d7296d36a44721fbdd788e71f185ba950318b0e1339
Contents?: true
Size: 595 Bytes
Versions: 8
Compression:
Stored size: 595 Bytes
Contents
require "spec_helper" RSpec.describe BookingSync::Engine::CredentialsResolver do describe "#call" do let(:credentials_resolver) do BookingSync::Engine::CredentialsResolver.new("example.test") end let!(:application) do Application.create(host: "example.test", client_id: "123", client_secret: "456") end it "returns an application credentials properly initiated" do expect(BookingSync::Engine::ApplicationCredentials).to receive(:new) .with(application).and_return("great") expect(credentials_resolver.call).to eq "great" end end end
Version data entries
8 entries across 8 versions & 1 rubygems