Sha256: 36aeb0dd3359bf31dd63b91d87416cd21b00c15621ea01873a50a6e804e198c4
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 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 => "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_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" controller.unregistered_user_session_path.should == "/users/unregistered" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_cas_authenticatable-1.0.0.alpha8 | spec/routes_spec.rb |
devise_cas_authenticatable-1.0.0.alpha7 | spec/routes_spec.rb |