Sha256: a1fa0a26438070f5a79b32d06bb593862a4daff0b12b51f95d4d1b7329da9cb2

Contents?: true

Size: 993 Bytes

Versions: 3

Compression:

Stored size: 993 Bytes

Contents

require 'spec_helper'

describe Devise::CasSessionsController do
  include RSpec::Rails::ControllerExampleGroup
  
  it { should route(:get, "/users/service").to(:action => "service") }
  it { should route(:get, "/users/sign_in").to(:action => "new") }
  it { should route(:post, "/users/sign_in").to(:action => "create") }
  it { should route(:get, "/users/sign_out").to(:action => "destroy") }
  it { should route(:get, "/users/unregistered").to(:action => "unregistered") }
  
  it "should have the right route names" do
    controller.should respond_to("user_service_path", "new_user_session_path", "user_session_path", "destroy_user_session_path")
    controller.user_service_path.should == "/users/service"
    controller.new_user_session_path.should == "/users/sign_in"
    controller.user_session_path.should == "/users/sign_in"
    controller.destroy_user_session_path.should == "/users/sign_out"
    controller.unregistered_user_session_path.should == "/users/unregistered"
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
devise_bushido_authenticatable-1.0.0 spec/routes_spec.rb
devise_bushido_authenticatable-1.0.0.alpha10 spec/routes_spec.rb
devise_cas_authenticatable-1.0.0.alpha10 spec/routes_spec.rb