spec/hello_sign/api/account_spec.rb in hellosign-ruby-sdk-3.6.4 vs spec/hello_sign/api/account_spec.rb in hellosign-ruby-sdk-3.7.0
- old
+ new
@@ -9,10 +9,14 @@
it 'should get the correct resource' do
expect(a_get('/account')).to have_been_made
end
+ it 'should have response headers' do
+ expect(@account.headers).to_not be_nil
+ end
+
it 'should return current user account' do
expect(@account).to be_an HelloSign::Resource::Account
end
end
@@ -23,9 +27,13 @@
@account = HelloSign.create_account @body
end
it 'should get the correct resource' do
expect(a_post('/account/create')).to have_been_made
+ end
+
+ it 'should return response headers' do
+ expect(@account.headers).to_not be_nil
end
it 'should return information about a created account' do
expect(@account.email_address).to eql('test@example.com')
end