Sha256: c43516dfa9cfd1eb9dc1c66c9a99618b4dc51d85d8df33bb28e3f13f3d2543c5

Contents?: true

Size: 805 Bytes

Versions: 1

Compression:

Stored size: 805 Bytes

Contents

require 'spec_helper'

describe Devise::CasSessionsController do
  include RSpec::Rails::ControllerExampleGroup
  
  it { should route(:get, "/users").to(:action => "service") }
  it { should route(:get, "/users/sign_in").to(:action => "create") }
  it { should route(:post, "/users/sign_in").to(:action => "create") }
  it { should route(:get, "/users/sign_out").to(:action => "destroy") }
  
  it "should have the right route names" do
    controller.should respond_to("user_path", "new_user_session_path", "user_session_path", "destroy_user_session_path")
    controller.user_path.should == "/users"
    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"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_cas_authenticatable-1.0.0.alpha6 spec/routes_spec.rb