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

Version Path
bookingsync-engine-6.0.1 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-6.0.0 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-5.1.0 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-5.0.0 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-4.0.3 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-4.0.2 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-4.0.1 spec/lib/bookingsync/engine/credentials_resolver_spec.rb
bookingsync-engine-4.0.0 spec/lib/bookingsync/engine/credentials_resolver_spec.rb