Sha256: e2b32ba3acf15f8a9e20830c12a8f7957eafcfbf8392c00f38b1fdd9afc23541
Contents?: true
Size: 1.13 KB
Versions: 16
Compression:
Stored size: 1.13 KB
Contents
require 'rails_helper' describe 'PaidUp::Routing' do include_context 'loaded site' routes { PaidUp::Engine.routes } describe 'nested resource' do context 'routes to a new subscription for a plan' do subject { get new_plan_subscription_path(professional_plan) } it do should( route_to( controller: 'paid_up/subscriptions', action: 'new', plan_id: professional_plan.id.to_s ) ) end end context 'routes to create a subscription for a plan' do subject { post plan_subscriptions_path(professional_plan) } it do should( route_to( controller: 'paid_up/subscriptions', action: 'create', plan_id: professional_plan.id.to_s ) ) end end end describe 'top-level resource' do context 'routes to a display of subscriptions for a user' do subject { get subscriptions_path } it do should( route_to( controller: 'paid_up/subscriptions', action: 'index' ) ) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems