Sha256: f6908fbdfc90955e0da2d82ed3f4e51bf0a9efd874188640697dc1d4ac8a828a
Contents?: true
Size: 929 Bytes
Versions: 3
Compression:
Stored size: 929 Bytes
Contents
require "spec_helper" describe Moiper::Notification do let(:params) { { "id_transacao" => "abc.1234", "valor" => "50034", "status_pagamento" => "5", "cod_moip" => "12345678", "forma_pagamento" => "3", "tipo_pagamento" => "CartaoDeCredito", "parcelas" => "1", "email_consumidor" => "pagador@email.com.br", "classificacao" => "Solicitado pelo vendedor" } } # subject { Moiper::Notification.new(params) } subject { described_class.new(params) } its(:id) { should eq "abc.1234" } its(:price) { should eq 500.34 } its(:payment_status) { should eq :canceled } its(:moip_id) { should eq 12345678 } its(:financial_institution) { should eq "Visa" } its(:payment_method) { should eq :credit_card } its(:quotas) { should eq 1 } its(:user_email) { should eq "pagador@email.com.br" } its(:additional_info) { should eq "Solicitado pelo vendedor" } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moiper-0.1.2 | spec/moiper/notification_spec.rb |
moiper-0.1.1 | spec/moiper/notification_spec.rb |
moiper-0.1.0 | spec/moiper/notification_spec.rb |