spec/client_spec.rb in sendgrid4r-1.6.0 vs spec/client_spec.rb in sendgrid4r-1.7.0

- old
+ new

@@ -43,11 +43,11 @@ # Api Keys expect(@client.respond_to?('get_api_keys')).to eq(true) expect(@client.respond_to?('post_api_key')).to eq(true) expect(@client.respond_to?('delete_api_key')).to eq(true) expect(@client.respond_to?('patch_api_key')).to eq(true) - # Advanced Suppression Manager + # Suppression Management # groups expect(@client.respond_to?('get_groups')).to eq(true) expect(@client.respond_to?('get_group')).to eq(true) expect(@client.respond_to?('post_group')).to eq(true) expect(@client.respond_to?('patch_group')).to eq(true) @@ -55,11 +55,16 @@ # suppressions expect(@client.respond_to?('post_suppressed_emails')).to eq(true) expect(@client.respond_to?('get_suppressions')).to eq(true) expect(@client.respond_to?('get_suppressed_emails')).to eq(true) expect(@client.respond_to?('delete_suppressed_email')).to eq(true) - # global suppressions + # global unsubscribes + expect(@client.respond_to?('get_global_unsubscribes')).to eq(true) + expect(@client.respond_to?('post_global_unsubscribes')).to eq(true) + expect(@client.respond_to?('get_global_unsubscribe')).to eq(true) + expect(@client.respond_to?('delete_global_unsubscribe')).to eq(true) + # deprecated expect(@client.respond_to?('post_global_suppressed_emails')).to eq(true) expect(@client.respond_to?('get_global_suppressed_email')).to eq(true) expect( @client.respond_to?('delete_global_suppressed_email') ).to eq(true) @@ -257,10 +262,28 @@ 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) expect(@client.respond_to?('delete_bounce')).to eq(true) + # Blocks API + expect(@client.respond_to?('get_blocks')).to eq(true) + expect(@client.respond_to?('delete_blocks')).to eq(true) + expect(@client.respond_to?('get_block')).to eq(true) + expect(@client.respond_to?('delete_block')).to eq(true) + + # Invalid Emails API + expect(@client.respond_to?('get_invalid_emails')).to eq(true) + expect(@client.respond_to?('delete_invalid_emails')).to eq(true) + expect(@client.respond_to?('get_invalid_email')).to eq(true) + expect(@client.respond_to?('delete_invalid_email')).to eq(true) + + # Spam Reports API + expect(@client.respond_to?('get_spam_reports')).to eq(true) + expect(@client.respond_to?('delete_spam_reports')).to eq(true) + expect(@client.respond_to?('get_spam_report')).to eq(true) + expect(@client.respond_to?('delete_spam_report')).to eq(true) + # Cancel Scheduled Sends Api expect(@client.respond_to?('generate_batch_id')).to eq(true) expect(@client.respond_to?('validate_batch_id')).to eq(true) expect(@client.respond_to?('post_scheduled_send')).to eq(true) expect(@client.respond_to?('get_scheduled_sends')).to eq(true) @@ -288,10 +311,10 @@ end end describe 'VERSION' do it 'returns VERSION value' do - expect(SendGrid4r::VERSION).to eq('1.6.0') + expect(SendGrid4r::VERSION).to eq('1.7.0') end end end end