test/pagarme/resources/postback_test.rb in pagarme-2.2.1 vs test/pagarme/resources/postback_test.rb in pagarme-2.2.2

- old
+ new

@@ -1,16 +1,16 @@ require_relative '../../test_helper' module PagarMe - class TransactionTest < PagarMeTestCase + class PostbackTest < PagarMeTestCase should 'be valid when has valid signature' do fixed_api_key do postback = PagarMe::Postback.new postback_response_params assert postback.valid? end end - should 'be valid when has invalid signature' do + should 'not be valid when has invalid signature' do postback = PagarMe::Postback.new postback_response_params(signature: 'sha1=invalid signature') assert !postback.valid? end should 'validate signature' do