Permalink
Browse files

Fixed broken tests

  • Loading branch information...
1 parent ae20858 commit 41c5caf8afc5aa5b60a6e4d8a84db3edbb7f0bc2 @peakpg peakpg committed Oct 19, 2010
Showing with 5 additions and 9 deletions.
  1. +5 −9 test/unit/cas/cas_authentication_test.rb
@@ -21,9 +21,12 @@ class CasAuthTest < ActiveSupport::TestCase
def setup
MyController.expects(:skip_filter).with(:check_access_to_page)
+ MyController.expects(:skip_filter).with(:try_to_stream_file)
+
MyController.expects(:before_filter).with(CASClient::Frameworks::Rails::GatewayFilter)
MyController.expects(:before_filter).with(:login_from_cas_ticket)
- MyController.expects(:before_filter).with(:check_access_to_page_normally)
+ MyController.expects(:before_filter).with(:try_to_stream_file)
+ MyController.expects(:before_filter).with(:check_access_to_page)
MyController.send(:include, Cas::Authentication)
@@ -34,13 +37,6 @@ def teardown
end
- test "Alias's the existing filter to a different name." do
- c = MyController.new
- c.expects(:check_access_to_page)
-
- c.check_access_to_page_normally
- end
-
test "adds current_user and login from session to class" do
c = MyController.new
@@ -66,7 +62,7 @@ def teardown
end
test "Cms::ContentController gets augmented" do
- assert (Cms::ContentController.new.respond_to? :check_access_to_page_normally)
+ assert (Cms::ContentController.new.respond_to? :login_from_cas_ticket)
end
end

0 comments on commit 41c5caf

Please sign in to comment.