spec/controllers/payanyway_controller_spec.rb in payanyway-1.2.4 vs spec/controllers/payanyway_controller_spec.rb in payanyway-1.2.5
- old
+ new
@@ -46,10 +46,10 @@
end
end
context 'when valid signature' do
it 'should and message to logger' do
- expect(Rails.logger).not_to receive(:info)
+ expect(Rails.logger).not_to receive(:info).with(/PAYANYWAY: XML response for check/)
expect_any_instance_of(Payanyway::Controller).to receive(:check_implementation).and_return(amount: 12, state: :paid)
get :check, { 'MNT_TRANSACTION_ID' => 676, 'MNT_SIGNATURE' => '79c1c4f41a0a70bb107c976ebba25811' }
expect(Nokogiri::XML(response.body).at_css('MNT_RESPONSE')).to be_present