Sha256: 4f78dee335f0d3c4ef78c2ee805cf07af05d732cd3af009de2ce3780d6a2c2db
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
require File.expand_path('../../spec_helper', __dir__) describe FirebaseAdmin::Client do before do @client = FirebaseAdmin::Client.new(project_id: 'test-project') end describe '.create_account' do before do stub_post('v1/projects/test-project/accounts') .to_return(body: fixture('create_account.json'), headers: { content_type: 'application/json; charset=utf-8' }) end it 'should get the correct resource' do @client.create_account(email: 'john@smith.com', password: 'supersecret') expect( a_post('v1/projects/test-project/accounts') .with(body: { email: 'john@smith.com', password: 'supersecret' }.to_json) .with(headers: { 'Authorization' => 'Bearer owner' }) ).to have_been_made end end end
Version data entries
3 entries across 3 versions & 1 rubygems