Sha256: 0e41a6a126619e9f33f108dbcb4f85817dab05870d196565ef52f6a1824c5099

Contents?: true

Size: 807 Bytes

Versions: 3

Compression:

Stored size: 807 Bytes

Contents

require "spec_helper"

describe "Routing for Authorizations" do
  it "maps GET ':mount_point/auth' to #index" do
    expect(:get => '/auth').to route_to('corkboard/authorizations#index')
  end

  it "maps GET ':mount_point/auth/:provider/callback' to #create" do
    expect(:get => '/auth/example/callback').to route_to('corkboard/authorizations#create', {
      :provider => 'example'
    })
  end

  it "maps POST ':mount_point/auth/:provider/callback' to #create" do
    expect(:post => '/auth/example/callback').to route_to('corkboard/authorizations#create', {
      :provider => 'example'
    })
  end

  it "maps DELETE ':mount_point/auth/:provider' to #destroy" do
    expect(:delete => '/auth/example').to route_to('corkboard/authorizations#destroy', {
      :provider => 'example'
    })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corkboard-0.1.3 spec/routing/authorizations_routing_spec.rb
corkboard-0.1.2 spec/routing/authorizations_routing_spec.rb
corkboard-0.1.1 spec/routing/authorizations_routing_spec.rb