Sha256: c607828bb1d459f860ab39ad904607b68ba7e74182b8622e10f2d752438a867d
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
require 'spec_helper' describe PaymentsController, type: :controller do describe '.webtopay' do it 'ignores methods that are not mentioned on webtopay actions list' do get :index # if webtopay is not ignored then then we should get message "'projectid' is required but missing." with 500 status code response.should be_success end context "when webtopay params are missing" do it 'raises error message' do expect { get :order }.to raise_error('"projectid" is invalid. Expected "12345", but was ""') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webtopay-1.6.1 | spec/lib/webtopay_controller_spec.rb |
webtopay-1.6.0 | spec/lib/webtopay_controller_spec.rb |