Sha256: 2383f12b26f172bcb4fe05eaa6e234de36047e16d9bc50ccab5287db8e7aded8

Contents?: true

Size: 793 Bytes

Versions: 8

Compression:

Stored size: 793 Bytes

Contents

describe Payanyway::Engine, type: :routing do
  routes { Payanyway::Engine.routes }

  context 'payanyway' do
    specify { expect(get('/success')).to route_to(
       controller: 'payanyway',
       action: 'success'
    )}

    specify { expect(get('/pay')).to route_to(
      controller: 'payanyway',
      action: 'pay'
    )}

    specify { expect(get('/fail')).to route_to(
      controller: 'payanyway',
      action: 'fail'
    )}

    specify { expect(get('/return')).to route_to(
      controller: 'payanyway',
      action: 'return'
    )}

    specify { expect(get('/in_progress')).to route_to(
      controller: 'payanyway',
      action: 'in_progress'
    )}

    specify { expect(get('/check')).to route_to(
      controller: 'payanyway',
      action: 'check'
    )}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
payanyway-2.3.1 spec/config/routes_spec.rb
payanyway-2.3.0 spec/config/routes_spec.rb
payanyway-2.2.2 spec/config/routes_spec.rb
payanyway-2.2.1 spec/config/routes_spec.rb
payanyway-2.2.0 spec/config/routes_spec.rb
payanyway-2.1.0 spec/config/routes_spec.rb
payanyway-2.0.2 spec/config/routes_spec.rb
payanyway-2.0.1 spec/config/routes_spec.rb