Sha256: c65117ad33cc5016d840bf39bd56431b44aecb4832f8e513e3eef6b601bf2b67

Contents?: true

Size: 606 Bytes

Versions: 26

Compression:

Stored size: 606 Bytes

Contents

require 'spec_helper'
describe Auth0::Api::V2::UsersByEmail do
  before :all do
    dummy_instance = DummyClass.new
    dummy_instance.extend(Auth0::Api::V2::UsersByEmail)
    @instance = dummy_instance
  end

  context '.users_by_email' do
    it { expect(@instance).to respond_to(:users_by_email) }
    it 'is expected to call /api/v2/users-by-email' do
      expect(@instance).to receive(:get).with(
        '/api/v2/users-by-email',
        fields: nil,
        include_fields: nil,
        email: 'email'
      )
      expect { @instance.users_by_email('email') }.not_to raise_error
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
auth0-5.6.1 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.6.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.5.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.4.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.3.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.2.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.1.2 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.1.1 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.1.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.0.1 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-5.0.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.17.1 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.17.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.16.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.15.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.14.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.13.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.12.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.11.0 spec/lib/auth0/api/v2/users_by_email_spec.rb
auth0-4.10.0 spec/lib/auth0/api/v2/users_by_email_spec.rb