spec/client_spec.rb in sendgrid4r-1.8.1 vs spec/client_spec.rb in sendgrid4r-1.10.0
- old
+ new
@@ -159,10 +159,12 @@
expect(@client.respond_to?('get_global_stats')).to eq(true)
expect(@client.respond_to?('get_categories_stats')).to eq(true)
expect(@client.respond_to?('get_categories_stats_sums')).to eq(true)
expect(@client.respond_to?('get_subusers_stats')).to eq(true)
expect(@client.respond_to?('get_subusers_stats_sums')).to eq(true)
+ expect(@client.respond_to?('get_subusers_stats_monthly')).to eq(true)
+ expect(@client.respond_to?('get_subuser_stats_monthly')).to eq(true)
expect(@client.respond_to?('get_geo_stats')).to eq(true)
expect(@client.respond_to?('get_devices_stats')).to eq(true)
expect(@client.respond_to?('get_clients_stats')).to eq(true)
expect(@client.respond_to?('get_clients_type_stats')).to eq(true)
expect(@client.respond_to?('get_mailbox_providers_stats')).to eq(true)
@@ -255,10 +257,16 @@
# Users API
expect(@client.respond_to?('get_user_profile')).to eq(true)
expect(@client.respond_to?('patch_user_profile')).to eq(true)
expect(@client.respond_to?('get_user_account')).to eq(true)
+ expect(@client.respond_to?('get_user_email')).to eq(true)
+ expect(@client.respond_to?('put_user_email')).to eq(true)
+ expect(@client.respond_to?('get_user_username')).to eq(true)
+ expect(@client.respond_to?('put_user_username')).to eq(true)
+ expect(@client.respond_to?('get_user_credits')).to eq(true)
+ expect(@client.respond_to?('put_user_password')).to eq(true)
# Bounces API
expect(@client.respond_to?('get_bounces')).to eq(true)
expect(@client.respond_to?('delete_bounces')).to eq(true)
expect(@client.respond_to?('get_bounce')).to eq(true)
@@ -306,15 +314,18 @@
expect(@client.respond_to?('get_whitelisted_ips')).to eq(true)
expect(@client.respond_to?('post_whitelisted_ips')).to eq(true)
expect(@client.respond_to?('delete_whitelisted_ips')).to eq(true)
expect(@client.respond_to?('get_whitelisted_ip')).to eq(true)
expect(@client.respond_to?('delete_whitelisted_ip')).to eq(true)
+
+ # Mail
+ expect(@client.respond_to?('send')).to eq(true)
end
end
describe 'VERSION' do
it 'returns VERSION value' do
- expect(SendGrid4r::VERSION).to eq('1.8.1')
+ expect(SendGrid4r::VERSION).to eq('1.10.0')
end
end
end
end