Sha256: 489913bcdc5a879ec21032df8cc3650401a295bcd5fbc939007bc16ab9e57659

Contents?: true

Size: 1.05 KB

Versions: 142

Compression:

Stored size: 1.05 KB

Contents

RSpec.describe "users router", type: :routing do
  it "should have a new session route" do
    expect(get: '/users/sign_in').to route_to(controller: 'users/sessions', action: 'new')
  end
  it "should have a new session path helper" do
    expect(get: new_user_session_path).to route_to(controller: 'users/sessions', action: 'new')
  end
  it "should have a destroy session route" do
    expect(get: '/users/sign_out').to route_to(controller: 'users/sessions', action: 'destroy')
  end
  it "should have a destroy session path helper" do
    expect(get: destroy_user_session_path).to route_to(controller: 'users/sessions', action: 'destroy')
  end
  it "should have a shibboleth authentication path" do
    expect(get: '/users/auth/shibboleth').to route_to(controller: 'users/omniauth_callbacks', action: 'passthru', provider: 'shibboleth')
  end
  it "should have a shibboleth authentication path helper" do
    expect(get: user_omniauth_authorize_path(:shibboleth)).to route_to(controller: 'users/omniauth_callbacks', action: 'passthru', provider: 'shibboleth')
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
ddr-models-2.11.0 spec/routing/user_routing_spec.rb
ddr-models-2.10.2 spec/routing/user_routing_spec.rb
ddr-models-2.10.1 spec/routing/user_routing_spec.rb
ddr-models-2.10.0 spec/routing/user_routing_spec.rb
ddr-models-2.10.0.rc2 spec/routing/user_routing_spec.rb
ddr-models-2.10.0.rc1 spec/routing/user_routing_spec.rb
ddr-models-2.9.2 spec/routing/user_routing_spec.rb
ddr-models-2.9.1 spec/routing/user_routing_spec.rb
ddr-models-2.9.0 spec/routing/user_routing_spec.rb
ddr-models-2.9.0.rc1 spec/routing/user_routing_spec.rb
ddr-models-2.8.0 spec/routing/user_routing_spec.rb
ddr-models-2.8.0.rc1 spec/routing/user_routing_spec.rb
ddr-models-2.7.6 spec/routing/user_routing_spec.rb
ddr-models-2.7.5 spec/routing/user_routing_spec.rb
ddr-models-2.7.4 spec/routing/user_routing_spec.rb
ddr-models-2.7.3 spec/routing/user_routing_spec.rb
ddr-models-2.7.2 spec/routing/user_routing_spec.rb
ddr-models-2.7.1 spec/routing/user_routing_spec.rb
ddr-models-2.7.0 spec/routing/user_routing_spec.rb
ddr-models-2.7.0.rc1 spec/routing/user_routing_spec.rb