spec/controllers/payanyway_controller_spec.rb in payanyway-1.2.0 vs spec/controllers/payanyway_controller_spec.rb in payanyway-1.2.1
- old
+ new
@@ -32,12 +32,18 @@
get :in_progress, { 'MNT_TRANSACTION_ID' => 676 }
end
end
describe 'GET #check' do
+ context 'when empty params' do
+ it 'should raise error' do
+ expect{ get :check }.not_to raise_error
+ end
+ end
+
context 'when invalid signature' do
it 'should raise error' do
- expect{ get :check }.to raise_error
+ expect{ get(:check, { 'MNT_TRANSACTION_ID' => 676 }) }.to raise_error
end
end
context 'when valid signature' do
it 'should and message to logger' do